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.

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
max_nesting
  • References/Ruby on Rails/Ruby/Classes/JSON/JSON::Ext/JSON::Ext::Generator/JSON::Ext::Generator::State

max_nesting Instance Public methods This integer returns the maximum level

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

to_json(*) Instance Public methods This string should be encoded with UTF-8

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

to_json(*) Instance Public methods Converts this object to a string (calling

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
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
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
  • 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