generate(obj, opts = nil)
Instance Public methods
Generate a JSON document from the Ruby data
structure obj and return it. state is
a JSON::State object,
or a Hash like object (responding to to_hash),
or an object convertible into a hash by a to_h method,
that is used as or to configure a State object.
It defaults to a state object, that creates the shortest possible JSON text in one line, checks for circular data
structures and doesn't allow NaN, Infinity, and -Infinity.
A