Turn JSON into CSV, and back
A JSON array becomes rows and columns. CSV with a header row becomes a JSON array of objects.
How are the columns made?
- One item, one row: the JSON is an array.
- Nested values: a column each, like tags[0].
- Gaps and null: an empty cell.
- Quotes: added where RFC 4180 asks.
CSV to JSON keeps cells as text; tick numbers as numbers for 12, true, false and null.