Sha256: 29c20bc1e3836d69c17ce488801b4533335084dd47de7877fe5d9de71a8d6535
Contents?: true
Size: 446 Bytes
Versions: 163
Compression:
Stored size: 446 Bytes
Contents
require 'yajl' unless defined?(::Yajl) module MultiJson module Adapters # Use the Yajl-Ruby library to dump/load. class Yajl ParseError = ::Yajl::ParseError def self.load(string, options={}) #:nodoc: ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string) end def self.dump(object, options={}) #:nodoc: ::Yajl::Encoder.encode(object, options) end end end end
Version data entries
163 entries across 94 versions & 17 rubygems
Version | Path |
---|---|
multi_json-1.3.2 | lib/multi_json/adapters/yajl.rb |
multi_json-1.3.1 | lib/multi_json/adapters/yajl.rb |
multi_json-1.3.0 | lib/multi_json/adapters/yajl.rb |