Type:
Module

This is the JSON generator implemented as a C extension. It can be configured to be used by setting

1
JSON.generator = JSON::Ext::Generator

with the method generator= in JSON.

to_json_raw_object
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::GeneratorMethods/JSON::Ext::Generator::GeneratorMethods::String

to_json_raw_object() Instance Public methods This method creates a raw object

2025-01-10 15:47:30
indent
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

indent() Instance Public methods This string is used to indent levels in the

2025-01-10 15:47:30
quirks_mode
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

quirks_mode? Instance Public methods Returns true, if quirks mode is enabled

2025-01-10 15:47:30
to_hash
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

to_hash() Instance Public methods Alias for:

2025-01-10 15:47:30
generate
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

generate(obj) Instance Public methods Generates a valid

2025-01-10 15:47:30
depth
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

depth Instance Public methods This integer returns the current depth of data

2025-01-10 15:47:30
[]
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

[](name) Instance Public methods Return the value returned by method name

2025-01-10 15:47:30
to_json
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::GeneratorMethods/JSON::Ext::Generator::GeneratorMethods::TrueClass

to_json(*) Instance Public methods Returns a

2025-01-10 15:47:30
quirks_mode=
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

quirks_mode=(enable) Instance Public methods If set to true, enables the

2025-01-10 15:47:30
ascii_only?
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

ascii_only? Instance Public methods Returns true, if NaN, Infinity, and -Infinity

2025-01-10 15:47:30