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.ndjsonPython
from urllib.request import urlopen
with urlopen("https://payloads.mochavi.com/v1/projects.ndjson") as response:
payload = response.read()Published files
11 stable URLs
| Path | Media type | Size |
|---|---|---|
/v1/projects.ndjson | application/x-ndjson; charset=utf-8 | 503 B |
/v1/projects/101.ndjson | application/x-ndjson; charset=utf-8 | 294 B |
/v1/projects/102.ndjson | application/x-ndjson; charset=utf-8 | 209 B |
/v1/tasks.ndjson | application/x-ndjson; charset=utf-8 | 485 B |
/v1/tasks/1001.ndjson | application/x-ndjson; charset=utf-8 | 170 B |
/v1/tasks/1002.ndjson | application/x-ndjson; charset=utf-8 | 143 B |
/v1/tasks/1003.ndjson | application/x-ndjson; charset=utf-8 | 172 B |
/v1/users.ndjson | application/x-ndjson; charset=utf-8 | 1.2 KB |
/v1/users/1.ndjson | application/x-ndjson; charset=utf-8 | 438 B |
/v1/users/2.ndjson | application/x-ndjson; charset=utf-8 | 371 B |
/v1/users/3.ndjson | application/x-ndjson; charset=utf-8 | 378 B |
Validate the canonical shape with the dataset schema.
Related guides: NDJSON parser testing, For coding agents.