Skip to content
OddsockLocal
Local
Source text
{
  "color": "red",
  "count": 2
}
1 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste a JSON array of objects into Source text. Each element has to be an object.
  2. There is no column picker. Keys become headers.
  3. Read the CSV. Nested keys appear as dot paths.
  4. Copy or download the sheet.

What is JSON to CSV?

JSON to CSV expects a nonempty array of objects and writes a header plus one row per object. Columns are the keys, in the order they first appear. Nested objects are flattened to dot paths before the columns are collected, so a record shaped like the flatten page contributes item.name rather than a single JSON blob in a cell. Arrays inside a record are flattened with bracket indexes.

Read more

A bare object such as {"color":"red","count":2} is refused with Enter a nonempty JSON array of records. Wrap it as a one-element array if you truly want one row. Values that are missing on a later record become empty cells. The header is the union of the keys, so a second object can introduce a column the first row leaves blank.

Use cases

  • A script emits an array of item records and a colleague needs a sheet.
  • An API list of objects is flattened into columns for a spreadsheet.
  • A one-row array of Item and Quantity is checked against the original CSV.
  • A nested item.name payload becomes columns without a separate flatten step.
  • A reviewer hits the array error on a single object and wraps it before exporting.

Two records back to a sheet

[{"Item":"Notebook","Quantity":12},{"Item":"Pen","Quantity":4}]. The object {"color":"red","count":2} is the paste that the sample capture rejected.

Item,Quantity Notebook,12 Pen,4 Pasting the color object alone returns Enter a nonempty JSON array of records.

Why use Oddsock

The array-of-objects rule keeps a single object from silently becoming a nonsense header, and the dot paths keep nested fields in columns.

Related tools

Using this tool

The page requires a nonempty array of objects. {"color":"red","count":2} is one object. The message is Enter a nonempty JSON array of records. Wrap it in [ ] for a single row.