lib/mtgox/response/parse_json.rb in mtgox-0.9.1 vs lib/mtgox/response/parse_json.rb in mtgox-1.0.0

- old
+ new

@@ -1,17 +1,17 @@ require 'faraday' -require 'multi_json' +require 'json' module MtGox module Response class ParseJson < Faraday::Response::Middleware def parse(body) case body when /\A^\s*$\z/, nil nil else - MultiJson.decode(body) + JSON.load(body) end end def on_complete(env) if respond_to?(:parse)