Class: MultiJson::Adapters::Oj

Inherits:
Object
  • Object
show all
Defined in:
lib/multi_json/adapters/oj.rb

Overview

Use the Oj library to dump/load.

Constant Summary collapse

ParseError =
SyntaxError

Class Method Summary collapse

Class Method Details

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

:nodoc:


15
16
17
# File 'lib/multi_json/adapters/oj.rb', line 15

def self.dump(object, options={}) #:nodoc:
  ::Oj.dump(object, options)
end

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

:nodoc:


11
12
13
# File 'lib/multi_json/adapters/oj.rb', line 11

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