method
pretty_generate
v1_9_2_180 -
Show latest stable
- Class:
JSON
pretty_generate(obj, opts = nil)public
Generate a JSON document from the Ruby data structure obj and return it. The returned document is a prettier form of the document returned by #unparse.
The opts argument can be used to configure the generator, see the generate method for a more detailed explanation.