I am working on a small data-processing task where I receive API responses in JSON format. The problem is that the JSON structure is nested, and I need to convert it into a clean CSV file where each key becomes a column, and each record becomes a separate row. My goal is to use the CSV file for reporting and sharing with non-technical users, but I am struggling to properly flatten the JSON data so that all values align correctly into rows and columns. Can anyone suggest a reliable way (tool, script, or approach) to turn JSON data into CSV rows and columns without losing nested field information?