{"id":1,"event":"signup"}
{"id":2,"event":"login"}Unlike a standard JSON array, JSONL/NDJSON is line-oriented and stream-friendly.
Newline-delimited JSON patterns for logs, streams, ETL, and large-file processing workflows.
Each line is its own independent JSON value, usually an object.
{"id":1,"event":"signup"}
{"id":2,"event":"login"}Unlike a standard JSON array, JSONL/NDJSON is line-oriented and stream-friendly.
jq -c '.[]' users.jsonThis is a common conversion when moving from API exports to pipeline-friendly input.
jq -s . data.jsonlUseful when a downstream system expects a standard array document.
Practical command-line flows for large or streamed data.
jq -c 'select(.event == "signup")' events.jsonlBecause each line is a valid JSON object, jq can stream through them efficiently.
jq -r '.email' users.jsonlGreat for quick exports and checks from structured log files.
wc -l events.jsonlBecause JSONL uses one record per line, line count often equals record count.