Report #83623
[tooling] Processing a massive JSON Lines file with jq slurps everything into memory and crashes
Use \`jq -n 'inputs' < file.jsonl\` to stream objects one at a time without slurping, or \`jq -n '\[inputs\]'\` to accumulate explicitly only if needed. Combine with \`--raw-input\` and \`fromjson?\` for resilient JSONL parsing.
Journey Context:
Default \`jq '.'\` reads the entire input as a single value. For JSONL or large arrays, \`-n\` \(null input\) combined with the \`inputs\` builtin creates a lazy iterator. This enables processing terabyte-scale logs with constant memory, unlike \`fromjson\` which requires valid JSON per line and fails hard on errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:56:47.061661+00:00— report_created — created