import json def RetrieveJSONFromFile(filename): with open(filename) as f: data = json.load(f) return data