Migrated to MultiJson from JSON gem.

This commit is contained in:
Bob Aman committed 2012-01-05 13:05:56 +03:00
1 parent 04ec835ca1
commit 0bc3d4936b
9 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ module Google
data = self.body
case media_type
when 'application/json'
data = ::JSON.parse(data)
data = MultiJson.decode(data)
# Strip data wrapper, if present
data = data['data'] if data.has_key?('data')
else