Sha256: b4fed88a6c10c7359325ef15d59bc719bdd4de26a1a7ccc27d8d7d43cd9698eb
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
require 'json/pure' unless defined?(::JSON) module MultiJson module Engines # Use JSON pure to encode/decode. class JsonPure 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_pure.rb |
multi_json-1.0.0.rc | lib/multi_json/engines/json_pure.rb |
multi_json-0.0.5 | lib/multi_json/engines/json_pure.rb |