Reading large JSON files in Python

For one of my Python-based projects, I have been using a really large JSON file as a hacky, slow, really-really-bad-but-works-for-me-hence-whatever database. Before a scripts executes, it reads all the data into one single dict: with open('hacky_database.json', 'r') as f: hacky_database = json.load(f) After it finishes, it writes the data back: with open('hacky_database.json', 'w') as f: … Continue reading Reading large JSON files in Python