Migrated to MultiJson from JSON gem.
This commit is contained in:
1 parent
04ec835ca1
commit
0bc3d4936b
9 files changed
+16
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user