Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
Fix for symbolizing responses when yajl is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
krobertson committed Jan 27, 2012
1 parent 2433328 commit 695471e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cloudfoundry/client/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ParseJSON < Faraday::Response::Middleware
def parse(body)
case body
when " " then nil
else JSON.parse(body, :symbolize_names => true)
else JSON.parse(body, :symbolize_names => true, :symbolize_keys => true)
end
rescue JSON::ParserError
raise CloudFoundry::Client::Exception::BadResponse, "Can't parse response into JSON:" + body
Expand Down

0 comments on commit 695471e

Please sign in to comment.