data = json.load(urllib.request.urlopen(url))
Prerequisite:
import json import urllib.request
Alternative: