How can I improve the performance of my Python script for processing large JSON files?
I am working on a Python script that processes large JSON files (~500MB) to extract specific data and save it into a CSV format. The script works, but it is slow, especially for files with nested JSON objects. Here’s a simplified version of my code: