If you want to get values from a JSON document, then open the file first and pass the file handle to json.load() instead. Depending on the document structure, json.load() would return dictionary or list, just like json.loads().
https://stackoverflow.com/questions/12353288/getting-values-from-json-using-python



