Two lines
Two objects on separate lines become an array with two items.
{"id": 1}
{"id": 2}Paste NDJSON, one JSON value per line. A JSON array is written beside it.
Ctrl+Enter or ⌘+Enter runs this tool immediately.
Waiting for input.
Parsing stays in this browser. Input is not uploaded or saved.
Two objects on separate lines become an array with two items.
{"id": 1}
{"id": 2}Lines can hold any JSON value, such as numbers or strings.
1
"two"
{"three": 3}Validate JSON, then pretty-print it with 2 or 4 spaces or minify it. Invalid JSON produces an error and leaves the output empty.
Check JSON syntax in the browser. Errors give a line and column, and duplicate keys that JSON.parse would silently drop are reported.
Convert a JSON array of objects or arrays to CSV in the browser. Nested values are rejected instead of being encoded.