Class: MultiJson::Adapters::JrJackson

Inherits:
MultiJson::Adapter show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapters/jr_jackson.rb

Overview

Use the jrjackson.rb library to dump/load.

Constant Summary collapse

ParseError =
::JrJackson::ParseError

Instance Method Summary collapse

Methods inherited from MultiJson::Adapter

defaults, dump, load

Methods included from Options

#default_dump_options, #default_load_options, #dump_options, #dump_options=, #load_options, #load_options=

Methods included from Singleton

#duplicable?

Instance Method Details

#dump(object, options = {}) ⇒ Object



15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapters/jr_jackson.rb', line 15

def dump(object, _)
  ::JrJackson::Json.dump(object)
end

#load(string, options = {}) ⇒ Object

:nodoc:



10
11
12
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapters/jr_jackson.rb', line 10

def load(string, options = {}) #:nodoc:
  ::JrJackson::Json.load(string, options)
end