Sha256: 550fe0baba5e79f4f293973e47853fb075dfc4d6d9d8206ca6a940ceeea54f1a
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
require 'json' unless defined?(::JSON) module MultiJson module Engines # Use the JSON gem to encode/decode. class JsonGem def self.decode(string, options = {}) #:nodoc: opts = {} opts[:symbolize_names] = options[:symbolize_keys] ::JSON.parse(string, opts) end def self.encode(object) #:nodoc: object.to_json 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/json_gem.rb |
multi_json-1.0.0.rc | lib/multi_json/engines/json_gem.rb |
multi_json-0.0.5 | lib/multi_json/engines/json_gem.rb |