Sha256: e4732ce2557c0937f5d80f456c092ec30d0b17413518bbc655f5502adc22e169
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
require 'json/pure' unless defined?(::JSON) module MultiJson module Engines class JsonPure def self.decode(string, options = {}) opts = {} opts[:symbolize_names] = options[:symbolize_keys] ::JSON.parse(string, opts) end def self.encode(object) object.to_json end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_json-0.0.2 | lib/multi_json/engines/json_pure.rb |