class MultiJson::Adapters::JrJackson

Use the jrjackson.rb library to dump/load.

def dump(object, _)

Other tags:
    Example: Serialize object to JSON -

Returns:
  • (String) - JSON string

Parameters:
  • _ (Hash) -- serialization options (unused in this version)
  • object (Object) -- object to serialize

Other tags:
    Api: - private
def dump(object, _)
  ::JrJackson::Json.dump(object)
end

def dump(object, options = {})

Other tags:
    Example: Serialize object to JSON -

Returns:
  • (String) - JSON string

Parameters:
  • options (Hash) -- serialization options
  • object (Object) -- object to serialize

Other tags:
    Api: - private
def dump(object, options = {})
  ::JrJackson::Json.dump(object, options)
end

def load(string, options = {})

Other tags:
    Example: Parse JSON string -

Returns:
  • (Object) - parsed Ruby object

Parameters:
  • options (Hash) -- parsing options
  • string (String) -- JSON string to parse

Other tags:
    Api: - private
def load(string, options = {})
  ::JrJackson::Json.load(string, options)
end