Class | JSON::Ext::Generator::State |
In: |
ext/json/ext/generator/generator.c
|
Parent: | Object |
Instantiates a new State object, configured by opts.
opts can have the following keys:
Instantiates a new State object, configured by opts.
opts can have the following keys:
This integer returns the maximum level of data structure nesting in the generated JSON, max_nesting = 0 if no maximum is checked.
This integer returns the maximum level of data structure nesting in the generated JSON, max_nesting = 0 if no maximum is checked.
This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.
This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.
Remember object, to find out if it was already encountered (if a cyclic data structure is rendered).
Remember object, to find out if it was already encountered (if a cyclic data structure is rendered).
Returns the configuration instance variables as a hash, that can be passed to the configure method.