JSONL and NDJSON/JSONL example

Two separate JSON objects on two lines.

Section: JSONL basics

JSONL example

json
json
{"id":1,"event":"signup"}
{"id":2,"event":"login"}
Explanation

Unlike a standard JSON array, JSONL/NDJSON is line-oriented and stream-friendly.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing JSONL basics
Convert array JSON to JSONL
Emit one compact object per line.
OpenIn sheetbashsame section
Convert JSONL back to a JSON array
Slurp separate lines into one array.
OpenIn sheetbashsame section
Filter JSONL lines by a field
Select only matching objects from a JSONL stream.
OpenIn sheetbash1 tag match
Extract one field from each JSONL record
Print a property from every line.
OpenIn sheetbash1 tag match
Count JSONL records
Count one record per line.
OpenIn sheetbash1 tag match