Type:
Module

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

JSON.generator = JSON::Ext::Generator

with the method generator= in JSON.

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
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
json_create
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::GeneratorMethods/JSON::Ext::Generator::GeneratorMethods::String/JSON::Ext::Generator::GeneratorMethods::String::Extend

json_create(o) Instance Public methods Raw Strings are

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::Float

to_json(*) Instance Public methods Returns a

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
[]
  • 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
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
to_json_raw
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::GeneratorMethods/JSON::Ext::Generator::GeneratorMethods::String

to_json_raw(*args) Instance Public methods This method creates a

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

initialize_copy(orig) Instance Public methods Initializes this object from

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