Fixed issue with ambiguous reference.
[arvados.git] / lib / google / api_client / result.rb
index 6cc292c1e52162f3711189ca487af9ba41bcfdd1..72c3968814111c1c24d997911f64b98c418b8c1d 100644 (file)
@@ -56,7 +56,7 @@ module Google
           data = self.body
           case media_type
           when 'application/json'
-            data = JSON.parse(data)
+            data = ::JSON.parse(data)
             # Strip data wrapper, if present
             data = data['data'] if data.has_key?('data')
           else