One record per line, so tools can stream it.
NDJSON, also called JSON Lines, writes a complete JSON value on every line with no wrapping array. grep, wc -l, jq, log shippers, warehouse loaders and the Elasticsearch bulk API all read this shape; none of them can consume a pretty-printed array incrementally.
[
{ "id": 1, "ok": true },
{ "id": 2, "ok": false }
] {"id":1,"ok":true}
{"id":2,"ok":false}
Rules that keep the file usable
- ▸Every line has to stand on its own. A value containing a newline is escaped by the serialiser, so the record still occupies exactly one line.
- ▸Indentation on the way in does not matter. The document is parsed before it is split, so a pretty-printed array still becomes one line per record; the wrapper is dropped because NDJSON has none.
- ▸Any value is legal, not only objects: a file of bare strings and numbers is valid NDJSON, which is why a scalar appears quoted on its own line.
- ▸Appending is the whole point. A writer adds a line without reading or rewriting the file, and a reader can stop at any line boundary.
NOTE There is no top-level type to inspect, so a consumer cannot tell an empty file from a file with one record without counting lines. That is the trade for being streamable.
What you get on this page
- ▸One compact JSON value per line
- ▸Arrays and single objects both supported
- ▸No server-side processing
- ▸Reverse NDJSON → JSON available
Because bracekit is a static application, this page loads quickly, caches well and never sends your data to a parsing server. Your formatting preferences, recent documents and snippets stay in local storage.