JSON format guide
Sample JSON files
Small sample JSON files with fictional users, projects and tasks, including nulls, Unicode, nested objects and arrays. Download one, or fetch the URL from a test, demo or prototype. Pick a whole collection (3 users, 2 projects or 3 tasks) or a single record. The 11 files range from 176 B to 1.6 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/json; charset=utf-8
Use it
Request an asset
Browser
const response = await fetch("/v1/projects.json");
const payload = await response.json();curl
curl -fsS https://payloads.mochavi.com/v1/projects.jsonPython
from urllib.request import urlopen
with urlopen("https://payloads.mochavi.com/v1/projects.json") as response:
payload = response.read()Published files
11 stable URLs
| Path | Media type | Size |
|---|---|---|
/v1/projects.json | application/json; charset=utf-8 | 707 B |
/v1/projects/101.json | application/json; charset=utf-8 | 365 B |
/v1/projects/102.json | application/json; charset=utf-8 | 267 B |
/v1/tasks.json | application/json; charset=utf-8 | 681 B |
/v1/tasks/1001.json | application/json; charset=utf-8 | 216 B |
/v1/tasks/1002.json | application/json; charset=utf-8 | 176 B |
/v1/tasks/1003.json | application/json; charset=utf-8 | 213 B |
/v1/users.json | application/json; charset=utf-8 | 1.6 KB |
/v1/users/1.json | application/json; charset=utf-8 | 548 B |
/v1/users/2.json | application/json; charset=utf-8 | 472 B |
/v1/users/3.json | application/json; charset=utf-8 | 484 B |
Validate the canonical shape with the dataset schema.
Related guides: Deterministic API fixtures, Frontend prototype data, For coding agents.