/usr/lib/ruby/vendor_ruby/multi_json/adapters/gson.rb is in ruby-multi-json 1.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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={})
string = string.read if StringIO === string
::Gson::Decoder.new(options).decode(string)
end
def dump(object, options={})
::Gson::Encoder.new(options).encode(object)
end
end
end
end
|