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

to_json(state = nil) Instance Public methods Returns a

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

array_nl=(array_nl) Instance Public methods This string is put at the end of

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

space() Instance Public methods This string is used to insert a space between

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

object_nl() Instance Public methods This string is put at the end of a line

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

space_before() Instance Public methods This string is used to insert a space

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

to_json(*) Instance Public methods Returns a

2025-01-10 15:47:30
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
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
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
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