Class: MultiJson::Adapters::Oj
- Inherits:
-
Object
- Object
- MultiJson::Adapters::Oj
- 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
-
.dump(object, options = {}) ⇒ Object
:nodoc:.
-
.load(string, options = {}) ⇒ Object
:nodoc:.
Class Method Details
.dump(object, options = {}) ⇒ Object
:nodoc:
15 16 17 |
# File 'lib/multi_json/adapters/oj.rb', line 15 def self.dump(object, ={}) #:nodoc: ::Oj.dump(object, ) end |
.load(string, options = {}) ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/multi_json/adapters/oj.rb', line 11 def self.load(string, ={}) #:nodoc: ::Oj.load(string, :symbol_keys => [:symbolize_keys]) end |