JSON Toolkit

Extended Formats and Dialects

JSON5, JSONC, JSON Lines and NDJSON solve real needs such as comments, trailing commas and streaming, and bring compatibility and selection problems of their own.

6 articles

Articles in this category

JSON5 and JSONC: JSON with Comments

Both dialects exist because human-written config needs comments and trailing commas, but their syntax and ecosystem reach differ, so picking wrong jams your toolchain.

Beginner~10 min readUpdated 2026-10-30

JSON Lines and NDJSON: Streaming Data

One JSON value per line buys you appendability, streaming, and damage isolated to a single line; the cost is the absence of overall structure, so validation has to happen line by line.

Intermediate~10 min readUpdated 2026-10-30

Working with JSONL Files: Open, Convert, and Debug Bad Lines

Feeding a whole .jsonl file to JSON.parse and getting an error almost never means the file is broken — it means the wrong reading strategy. This guide covers the standard ways to inspect and read JSONL line by line, the commands for converting to and from JSON arrays, a six-row table of common bad lines, and the correct way to consume JSONL from streaming HTTP responses.

Intermediate~9 min readUpdated 2026-11-06