Home / Guides / Self-Hosting & Infra
NDJSON / JSON Lines vs JSON: Streaming Large Datasets, Bad-Line Recovery, NaN and Unicode in Python and jq
Tested: NDJSON written with json.dumps, per-line parsing salvaging 3 of 4 lines after a truncated record, why json.loads on the whole file says Extra data, NaN output and allow_nan, ensure_ascii, and jq -c and jq -s.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →