Convert JSON array to CSV for any array structure
Convert JSON array to CSV regardless of whether your input is an array of objects, an array of primitives, or a multidimensional matrix. JSON arrays are the foundational data structure for lists, database queries, and API exports. mommyfile recognizes every array variant and formats it into clean, rectangular spreadsheet rows.
Auto-Root Detection
If your array is wrapped inside an outer metadata envelope like {"status": 200, "data": [...]}, mommyfile automatically detects the inner array and converts it into rows.
How to convert a JSON array to CSV
Transform any array format into spreadsheet columns with these simple steps:
Paste your JSON array
Paste raw JSON array text starting with [ into the input area or upload an array data file.
Verify detected array shape
Check the preview table to confirm whether your array was detected as a list of records, primitive values, or a coordinate matrix.
Export your spreadsheet
Copy the generated CSV directly or click Download CSV to save the file to your device.
Handling the three core array shapes: objects, primitives, and 2D matrices
Different programming patterns produce different array layouts. mommyfile handles all three major shapes intelligently:
- Array of Objects (Standard Records):
[{"id": 1, "name": "Apple"}, {"id": 2, "name": "Orange"}]The keys become column headers (id, name) and each object forms one row. - Array of Primitives (Simple Lists):
["Red", "Green", "Blue", "Yellow"]Primitives cannot provide object keys, so mommyfile assigns a clean default column header namedvalue, placing each entry on a separate row. - Array of Arrays (2D Matrix):
[["Timestamp", "Reading"], [1700000000, 42.5], [1700000060, 43.1]]The first row can serve as headers, or columns are labeled with numeric indices (0, 1, 2), reproducing clean grid coordinates.
Automatic array root detection and extraction
Often, API responses do not start with a top-level array. Instead, they provide an outer JSON envelope containing pagination details, error codes, and a nested array property:
{
"total": 150,
"page": 1,
"records": [
{"id": 1, "item": "Widget A"}
]
}
When mommyfile encounters this pattern, it automatically locates the first major array property (records) and extracts it into tabular rows, eliminating the need to manually delete the outer envelope.