The first three orders of the example shown as a JSON array in orders.json and as three lines in orders.jsonl, above a comparison of reading, memory, appending, one bad record and counting records for each format

JSON Lines (JSONL) and NDJSON Explained

JSONL (JSON Lines) stores one JSON value per line, so files and HTTP responses can be read, appended and streamed record by record. We compare JSONL with JSON arrays and NDJSON, check the media types, and read, write and stream JSONL in Python, Node.js and Java.

JSON

Comments in JSON: JSONC and JSON5

JSON has no comments, so every strict parser rejects // and /* */. We look at why, the exact error each parser gives, the _comment key workaround, JSONC and JSON5 with their parsers, safe comment stripping, and why an API must never send or accept comments.

JSON

JSON Schema: Validate JSON with Examples

JSON Schema is a grammar language for defining the structure, content, and (to some extent) semantics of JSON objects. It lets you specify metadata (data about data) about what an object’s properties mean and what values are valid for those properties.