QamoosTech
Web & APIsData formatsIntermediate

NDJSON

Pronunciationen-dee-JAY-son

Definition

A format with one valid JSON object on each line, separated by newline characters. It lets programs read large files or streams one record at a time, without loading everything into memory.

Where you hear it

In large data exports, log pipelines, and bulk import APIs.

Examples

  • Each line of the export is one order in NDJSON.
  • Read the file line by line so it never fits fully in memory.
  • Each line of the log file is a JSON event, so the parser reads one line at a time.

Common mistake

Treating an NDJSON file as one big JSON array. Each line must be parsed on its own.

Don't confuse with

NDJSON has one record per line. A JSON array holds all records inside one set of brackets.