import json
import urllib.request, urllib.error, urllib.parse
url = 'http://httpbin.org/get'
response = urllib.request.urlopen(url)
data = response.read()
values = json.loads(data)
Reading JSON files from curl in Python