Sha256: 461d76e7f83fe1057641a892f8dedf918a5441820d035cc0e63eb11bafcbff95
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
require 'yajl' unless defined?(Yajl) module MultiJson module Engines # Use the Yajl-Ruby library to encode/decode. class Yajl def self.decode(string, options = {}) #:nodoc: ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string) end def self.encode(object) #:nodoc: ::Yajl::Encoder.new.encode(object) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_json-1.0.0.rc2 | lib/multi_json/engines/yajl.rb |
multi_json-1.0.0.rc | lib/multi_json/engines/yajl.rb |
multi_json-0.0.5 | lib/multi_json/engines/yajl.rb |