NDJSON (newline-delimited JSON) stores many JSON objects as separate lines. It’s popular for logs, data pipelines, and streaming.
Each line is valid JSON by itself:
{"ts":"2026-03-19T10:00:00Z","level":"info","msg":"started"}
{"ts":"2026-03-19T10:00:01Z","level":"warn","msg":"retrying","attempt":2}
{"ts":"2026-03-19T10:00:02Z","level":"info","msg":"done"}
A JSON array is one JSON document:
[
{"id": 1},
{"id": 2}
]
NDJSON is many JSON documents separated by newlines.
Related: Large JSON tips · Validate JSON