We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae2ca55 commit b58b498Copy full SHA for b58b498
1 file changed
lib/multi_json/adapters/gson.rb
@@ -8,6 +8,7 @@ class Gson < Adapter
8
ParseError = ::Gson::DecodeError
9
10
def load(string, options={})
11
+ string = string.read if StringIO === string
12
::Gson::Decoder.new(options).decode(string)
13
end
14
0 commit comments