JSON Array Generator

Fill in the grid and get JSON. The default is an array of objects keyed by your column names, which is what most code expects, and three other shapes are a click away.

From

The only part of this site that uses a server. The address is sent to it so the page can be fetched, because a browser is not allowed to fetch someone else's page itself. Your own files are never involved.

Nothing here is uploaded. The parsing happens on this page.
Edit
Paste or upload something above and it will appear here.
ToDataMarkupDocumentsCodeSchemasImages

The output will appear here once there is a table to convert.

Choosing a shape

An array of objects for almost everything. It repeats the keys on every record, which costs bytes and buys the ability to read any single record without reference to the others.

A 2D array when the size matters and the consumer knows the column order. Column arrays when you are feeding a charting library that wants one array per series. An object keyed by the first column when you need lookups by id rather than a list.

Types

Everything is written as a string unless you turn type inference on, because a grid has no types and guessing corrupts identifiers. With inference on, a value that starts with a zero followed by a digit is still left as text, which keeps 007 and 0044 intact.

Questions

Can I make the values numbers instead of strings?

Turn on Detect numbers in the output options. Anything that parses as a number becomes one, except values with a leading zero, which stay text because they are almost always identifiers rather than quantities.

Already have the data somewhere else?

Other generators