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.

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

check_circular? Instance Public methods Returns true, if circular data structures

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