Class: MultiJson::Adapters::Oj

Inherits:
MultiJson::Adapter show all
Defined in:
lib/multi_json/adapters/oj.rb

Overview

Use the Oj library to dump/load.

Defined Under Namespace

Classes: 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=

Instance Method Details

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



32
33
34
35
# File 'lib/multi_json/adapters/oj.rb', line 32

def load(string, options = {})
  options[:symbol_keys] = options[:symbolize_keys]
  ::Oj.load(string, options)
end