JSON to CSV Data Checklist: Spreadsheets & Nested Keys
By ZixTool · Updated
Before converting JSON to CSV, decide what each row represents and how nested values should become columns. Validate the JSON, preserve identifiers as text, then compare row counts and representative values after importing the CSV.
Decide what one spreadsheet row represents
Following a structured JSON to CSV data checklist ensures that tabular conversion proceeds cleanly without field truncation. A useful CSV has a clear row definition: one customer, one order, one measurement, or another consistent record. JSON can represent nested structures, while a CSV spreadsheet is a sequence of rows and fields. Decide how to map the data before exporting it.
For example, an order object may contain a customer and three line items. You could use one row per order and keep the line items together, or use three rows with the order ID repeated. Both choices can be valid, but they answer different questions. A converter cannot infer the correct business meaning from the braces alone.
Use JSON Formatter to inspect the structure. An array of similarly shaped objects is a useful starting point for JSON to CSV. If the response wraps the array in a property such as data or results, select that array deliberately rather than exporting the entire response envelope.
Nested objects need an explicit mapping
Suppose a record contains customer.name and customer.address.city. A flat table might use columns named customer_name and city. If an array represents multiple events, you need a decision about extra rows, separate tables, or storing that array as text in one cell.
The current ZixTool JSON-to-CSV converter uses top-level object keys as headers and serializes nested objects into cell text. It does not automatically expand nested properties into separate columns. Prepare a flat array before using it when your import system expects one scalar value per column.
Check records that have missing keys, null values, or additional fields. An empty cell may not mean the same thing as zero, false, or the literal text null. Make those distinctions in your preparation step and keep a copy of the original JSON so that you can check any ambiguous output later.
Check delimiters, commas and quoted text
A comma inside a value is data, not necessarily a new column. CSV conventions use quoting to distinguish such values; embedded quote characters require escaping. Values can also contain line breaks. Avoid splitting CSV on every comma or newline without respecting quoted fields.
Test with a representative value such as a name containing a comma and a note containing quotation marks. Select the same delimiter in the converter and your spreadsheet import dialog. If the whole row appears in one column, a delimiter mismatch is one possible cause.
When using CSV to JSON, inspect the output before relying on it for complex multiline records. Keep the first test small enough to compare manually. A successful parse is not proof that every field retained its original meaning.
Preserve IDs, dates and large numbers
An identifier such as 00123 is often text, even if it contains only digits. Spreadsheet software may remove leading zeros or interpret certain strings as dates. Import identifier columns as text where your spreadsheet supports that setting and compare their values afterward.
Large integer identifiers need attention before conversion too. JavaScript’s ordinary numeric parsing cannot exactly represent every possible integer. Keep identifiers as JSON strings if exact character preservation matters; turning an already-rounded number back into text cannot restore missing digits.
Inspect any imported data that begins with formula-like characters before opening an untrusted CSV in a spreadsheet. Decide how your receiving application should treat those values. This checklist is about preserving data, not establishing that an arbitrary file is safe or valid for a particular database schema.
Compare the result with the source
Count records before export and rows after import, allowing for a header row. Compare at least one simple record and one record with missing, nested, quoted, or unusual values. Verify that every expected column is present and in the order required by the receiving system.
Use Diff Checker to compare small text samples when helpful, but remember that field reordering or whitespace changes can produce differences without changing meaning. For an API import, validate the required fields and types against that API’s documented schema separately.
Do not paste access tokens or unnecessary personal data into examples you intend to share. Keep your original export until the destination confirms a successful import. If you are troubleshooting a rejected file attachment rather than its data contents, the upload requirements guide explains the distinction between format and file-size failures.