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.json

Python

from urllib.request import urlopen

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

Published files

11 stable URLs

Open explorer
PathMedia typeSize
/v1/projects.jsonapplication/json; charset=utf-8707 B
/v1/projects/101.jsonapplication/json; charset=utf-8365 B
/v1/projects/102.jsonapplication/json; charset=utf-8267 B
/v1/tasks.jsonapplication/json; charset=utf-8681 B
/v1/tasks/1001.jsonapplication/json; charset=utf-8216 B
/v1/tasks/1002.jsonapplication/json; charset=utf-8176 B
/v1/tasks/1003.jsonapplication/json; charset=utf-8213 B
/v1/users.jsonapplication/json; charset=utf-81.6 KB
/v1/users/1.jsonapplication/json; charset=utf-8548 B
/v1/users/2.jsonapplication/json; charset=utf-8472 B
/v1/users/3.jsonapplication/json; charset=utf-8484 B

Validate the canonical shape with the dataset schema.

Related guides: Deterministic API fixtures, Frontend prototype data, For coding agents.