Sha256: 4d5a9b8e538ff431662d10d2f919a1266b20e0f63dff170c461332a6e1183845
Contents?: true
Size: 421 Bytes
Versions: 12
Compression:
Stored size: 421 Bytes
Contents
require 'gson' require 'stringio' require 'multi_json/adapter' module MultiJson module Adapters # Use the gson.rb library to dump/load. class Gson < Adapter ParseError = ::Gson::DecodeError def load(string, options={}) ::Gson::Decoder.new(options).decode(string) end def dump(object, options={}) ::Gson::Encoder.new(options).encode(object) end end end end
Version data entries
12 entries across 12 versions & 7 rubygems