class MultiJson::Adapters::Gson

Use the gson.rb library to dump/load.

Constants

ParseError

Public Instance Methods

dump(object, options={}) click to toggle source
# File lib/multi_json/adapters/gson.rb, line 14
def dump(object, options={})
  ::Gson::Encoder.new(options).encode(object)
end
load(string, options={}) click to toggle source
# File lib/multi_json/adapters/gson.rb, line 10
def load(string, options={})
  ::Gson::Decoder.new(options).decode(string)
end