lib/ably/rest/middleware/parse_json.rb in ably-0.1.2 vs lib/ably/rest/middleware/parse_json.rb in ably-0.1.3
- old
+ new
@@ -3,10 +3,10 @@
module Ably
module Rest
module Middleware
class ParseJson < Faraday::Response::Middleware
def parse(body)
- JSON.parse(body, symbolize_names: true)
+ JSON.parse(body)
rescue JSON::ParserError => e
raise Ably::Exceptions::InvalidResponseBody, "Expected JSON response. #{e.message}"
end
end
end