How nested data is flattened
CSV is a flat table, but JSON can be nested. With flattening on, nested objects become dot-notation columns:
| JSON | CSV columns |
|---|---|
{"address": {"city": "London"}} | address.city = London |
{"tags": ["admin", "beta"]} | tags = admin; beta |
{"items": [{"sku": 1}]} | items = the array as JSON text |
Arrays of simple values are joined with semicolons. Arrays of objects are kept as JSON text in one cell, because spreading them across columns or rows can't be done in a way that suits everyone.
Quoting rules
Output follows RFC 4180. A value that contains the delimiter, a double quote or a line break is wrapped in double quotes, and any quotes inside it are doubled. Omar, Jr. becomes "Omar, Jr.", so the file opens correctly in Excel, Google Sheets, Numbers and databases.
Opening the file
- Excel (US/UK): comma delimiter, BOM on, then double-click the downloaded file.
- Excel (most of Europe): choose the semicolon delimiter, because the comma is the decimal separator there.
- Google Sheets: File → Import → Upload. Any delimiter works.
Validate or tidy the JSON first with the JSON formatter.