pretty_generate(obj, opts = nil) public

Unparse the Ruby data structure obj into a JSON string and return it. The returned string is a prettier form of the string returned by #unparse.

The opts argument can be used to configure the generator, see the generate method for a more detailed explanation.

Show source
Register or log in to add new notes.