JSONL and NDJSON/Extract one field from each JSONL record

Print a property from every line.

Section: Processing JSONL files

Extract one field from each JSONL record

bash
bash
jq -r '.email' users.jsonl
Explanation

Great for quick exports and checks from structured log files.

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 Processing JSONL files
Filter JSONL lines by a field
Select only matching objects from a JSONL stream.
OpenIn sheetbashsame section
Count JSONL records
Count one record per line.
OpenIn sheetbashsame section
Convert array JSON to JSONL
Emit one compact object per line.
OpenIn sheetbash2 tag match
Convert JSONL back to a JSON array
Slurp separate lines into one array.
OpenIn sheetbash2 tag match
JSONL example
Two separate JSON objects on two lines.
OpenIn sheetjson1 tag match