Class: MultiJson::Adapters::Yajl
- Inherits:
-
Object
- Object
- MultiJson::Adapters::Yajl
- Defined in:
- lib/multi_json/adapters/yajl.rb
Overview
Use the Yajl-Ruby library to dump/load.
Constant Summary collapse
- ParseError =
::Yajl::ParseError
Class Method Summary collapse
-
.dump(object, options = {}) ⇒ Object
:nodoc:.
-
.load(string, options = {}) ⇒ Object
:nodoc:.
Class Method Details
.dump(object, options = {}) ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/multi_json/adapters/yajl.rb', line 13 def self.dump(object, ={}) #:nodoc: ::Yajl::Encoder.encode(object, ) end |
.load(string, options = {}) ⇒ Object
:nodoc:
9 10 11 |
# File 'lib/multi_json/adapters/yajl.rb', line 9 def self.load(string, ={}) #:nodoc: ::Yajl::Parser.new(:symbolize_keys => [:symbolize_keys]).parse(string) end |