NDJSON format guide

Sample NDJSON files

Small newline-delimited JSON files with one compact record per line and a final newline. Each file is also valid JSON Lines, so it works as .jsonl test input. Pick a whole collection (3 users, 2 projects or 3 tasks) or a single record. The 11 files range from 143 B to 1.2 KB.

No account or API key is needed. A published v1 file never changes, its SHA-256 is listed in the manifest, and the data is CC0, so you can also commit a copy to your own repository.

application/x-ndjson; charset=utf-8

Use it

Request an asset

Browser

const response = await fetch("/v1/projects.ndjson");
const payload = await response.text();

curl

curl -fsS https://payloads.mochavi.com/v1/projects.ndjson

Python

from urllib.request import urlopen

with urlopen("https://payloads.mochavi.com/v1/projects.ndjson") as response:
    payload = response.read()

Published files

11 stable URLs

Open explorer
PathMedia typeSize
/v1/projects.ndjsonapplication/x-ndjson; charset=utf-8503 B
/v1/projects/101.ndjsonapplication/x-ndjson; charset=utf-8294 B
/v1/projects/102.ndjsonapplication/x-ndjson; charset=utf-8209 B
/v1/tasks.ndjsonapplication/x-ndjson; charset=utf-8485 B
/v1/tasks/1001.ndjsonapplication/x-ndjson; charset=utf-8170 B
/v1/tasks/1002.ndjsonapplication/x-ndjson; charset=utf-8143 B
/v1/tasks/1003.ndjsonapplication/x-ndjson; charset=utf-8172 B
/v1/users.ndjsonapplication/x-ndjson; charset=utf-81.2 KB
/v1/users/1.ndjsonapplication/x-ndjson; charset=utf-8438 B
/v1/users/2.ndjsonapplication/x-ndjson; charset=utf-8371 B
/v1/users/3.ndjsonapplication/x-ndjson; charset=utf-8378 B

Validate the canonical shape with the dataset schema.

Related guides: NDJSON parser testing, For coding agents.