{
"color": "red",
"count": 2
}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.
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.
[{"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.
The array-of-objects rule keeps a single object from silently becoming a nonsense header, and the dot paths keep nested fields in columns.
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.
Dot-path columns, the same paths Flatten JSON would write. item.name and item.qty each get a column.
As an empty cell. The header still includes the key if any record had it.
12 is written as digits. A string that contains a comma is quoted so it stays one cell.
An empty array is refused with the same nonempty-records message. Include at least one object.