pretty_generate

pretty_generate(obj, opts = nil)
Instance Public methods

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.

doc_ruby_on_rails
2015-04-17 06:18:16
Comments
Leave a Comment

Please login to continue.