JSON to CSV: what it is and when to use it
Understand how JSON data can be converted into spreadsheet-ready rows and columns.
What is JSON?
JSON is a text format used to store and exchange structured data. It represents information using objects, arrays, strings, numbers, booleans, and null values.
JSON can represent nested information. A spreadsheet usually works best with a flat table of rows and columns.
What does conversion do?
CSV is a simple tabular format that spreadsheet applications and data tools can read. A converter maps object properties to column headers and each object in an array to a row.
For nested objects, a converter can flatten child properties into dotted column names such as customer.name or address.city.
Check your data before exporting
Values containing commas, quotation marks, or line breaks need correct CSV escaping. Treat untrusted CSV values carefully because formula-like values can be interpreted as formulas.