new(opts = {})
Class Public methods
Instantiates a new State object, configured by
opts.
opts can have the following keys:
indent: a string used to indent levels (default:
''),
space: a string that is put after, a : or , delimiter
(default: ''),
space_before: a string that is put before a : pair
delimiter (default: ''),
object_nl: a string that is put at the end of a JSON object (default: ''),
array_nl: a string that is put at the end of a JSON array (default: ''),
allo