newline-delimited JSON

A streaming format in which every line is one complete JSON document, so each record can be parsed as soon as it arrives.

In more detail

Also called JSON Lines, it is common for structured logs, streaming responses and bulk data exports. Each line can be parsed on its own, so a file can be appended to and streamed without loading it all at once. If a stream breaks, every complete line received so far is still a valid record.

Examples

In the APIs course: The course service streams tasks with Content-Type: application/x-ndjson.
{"id":1,"title":"Design"}
{"id":2,"title":"Build"}
The course reads orders.jsonl with one json.loads call per line.
siem_alerts.jsonl holds one alert per line.

Related terms

Taught in

References