class JSON
A JSON coder that uses the standard JSON library.
Definitions
def parse(buffer)
Parse a JSON buffer into an object.
Implementation
def parse(buffer)
::JSON.parse(buffer, **@options)
end
def generate(object)
Generate a JSON buffer from an object.
Implementation
def generate(object)
::JSON.generate(object, **@options)
end
DEFAULT = new(symbolize_names: true)
The default JSON coder. This coder will symbolize names.