How the conversion works
- Each array item becomes one row; a single object becomes one row.
- Keys are collected from all rows in order of first appearance, so rows with missing keys get empty cells.
- Nested objects are flattened:
{"address":{"city":"X"}}→ columnaddress.city. - Arrays are written as JSON text inside the cell.
- Cells containing the delimiter, quotes or newlines are wrapped in double quotes, and inner quotes are doubled (RFC 4180).
Worked example
[{"id":1,"name":"Ada"},{"id":2,"name":"Li, Chen"}]
→
id,name
1,Ada
2,"Li, Chen"Excel in some European locales expects semicolons; choose the semicolon delimiter for those.