JSON ↔ CSV
Convert between JSON arrays and CSV
Conversion Logic
JSON to CSV: The JSON must be an array of objects. Each object represents a row, and keys represent the column headers.
CSV to JSON: The first row is treated as the header row. Each subsequent row is converted into a JSON object.