quirks_mode?

quirks_mode? Instance Public methods Returns true, if quirks mode is enabled. Otherwise returns false.

space

space() Instance Public methods This string is used to insert a space between the tokens in a JSON string.

space=

space=(space) Instance Public methods This string is used to insert a space between the tokens in a JSON string.

space_before

space_before() Instance Public methods This string is used to insert a space before the ':' in JSON objects.

space_before=

space_before=(space_before) Instance Public methods This string is used to insert a space before the ':' in JSON objects.

to_h

to_h Instance Public methods Returns the configuration instance variables as a hash, that can be passed to the configure method. to_hash

to_hash

to_hash() Instance Public methods Alias for: to_h

new

new(source, opts => {}) Class Public methods Creates a new JSON::Ext::Parser instance for the string source. Creates a new JSON::Ext::Parser instance for the string source. It will be configured by the opts hash. opts can have the following keys: opts can have the following keys: max_nesting: The maximum depth of nesting allowed in the parsed data structures. Disable depth checking with :max_nesting => false|nil|0, it defaults to 100. allow_nan: If set to true, allow NaN,

parse

parse() Instance Public methods Parses the current JSON text source and returns the complete data structure as a result.

quirks_mode?

quirks_mode?() Instance Public methods Returns a true, if this parser is in quirks_mode, false otherwise.