JSON Samples
Realistic example JSON documents to copy and use — API responses, config files, nested structures and stress tests. Hit Copy JSON to put the whole document on your clipboard for a test, a fixture or a mock, or open it in the formatter to explore it as a tree. Everything happens locally in your browser.
API & data
API Response
Paginated REST response with metadata, links and nested records.
{ meta, pagination, links, data: [...] }
{ "meta": { "requestId": "req_8f3c1a92e7b04d15", "endpoint": "/v1/users", "method": "GET", "status": 200, "durationMs": 42, "timestamp": "2024-06-11T09:14:02.518Z", "version": "2024-05-01", "cached": false }, "pagination": { "page": 2, "perPage": 3, "totalPages": 47, "totalItems": 139, "hasNextPage": true, "hasPreviousPage": true }, "links": { "self": "https://api.example.com/v1/users?page=2&per_page=3", "first": "https://api.example.com/v1/users?page=1&per_page=3", "prev": "https://api.example.com/v1/users?page=1&per_page=3", "next": "https://api.example.com/v1/users?page=3&per_page=3", "last": "https://api.example.com/v1/users?page=47&per_page=3" }, "data": [ { "id": "usr_01H8XK4M2P", "type": "user", "email": "amelia.hart@example.com", "name": { "first": "Amelia", "last": "Hart",User Profile
One account with preferences, notification settings and activity.
{ id, plan, preferences: {...}, recentActivity: [...] }
{ "id": "usr_01H8XK4M2P", "username": "amelia", "email": "amelia.hart@example.com", "emailVerified": true, "avatarUrl": "https://cdn.example.com/avatars/amelia.png", "bio": "Platform engineer. Caffeine to YAML converter.", "pronouns": "she/her", "timezone": "Europe/London", "locale": "en-GB", "joinedAt": "2021-02-14T11:05:00Z", "lastSeenAt": "2024-06-10T22:41:19Z", "plan": { "tier": "pro", "renewsOn": "2025-02-14", "seats": 5, "trial": null, "addOns": [ "audit-log", "sso" ] }, "preferences": { "theme": "system", "reducedMotion": false, "editor": { "indent": 2, "wordWrap": true, "fontSize": 13, "keymap": "default" }, "notifications": { "email": { "product": true,E-commerce Product
Catalogue item with variants, inventory, images and ratings.
{ sku, price, variants: [...], inventory: {...} }
{ "id": "prod_9d4f21", "sku": "ACME-HDPH-BLK", "name": "Acme Studio Wireless Headphones", "slug": "acme-studio-wireless-headphones", "brand": { "id": "brd_11", "name": "Acme Audio", "url": "https://acme.example.com" }, "description": "Over-ear wireless headphones with adaptive noise cancelling and 40-hour battery life.", "categories": [ "Electronics", "Audio", "Headphones" ], "tags": [ "wireless", "noise-cancelling", "over-ear" ], "price": { "amount": 24999, "currency": "USD", "formatted": "$249.99" }, "compareAtPrice": { "amount": 29999, "currency": "USD", "formatted": "$299.99" }, "discount": { "type": "percentage", "value": 17,Config & structure
Configuration
Application config: server, database, cache, logging, feature flags.
{ server, database, cache, featureFlags, jobs: [...] }
{ "$schema": "https://example.com/schemas/app-config.v3.json", "name": "edge-router", "environment": "production", "version": "3.14.2", "server": { "host": "0.0.0.0", "port": 8080, "basePath": "/api", "trustProxy": true, "requestTimeoutMs": 30000, "bodyLimit": "5mb", "cors": { "enabled": true, "origins": [ "https://app.example.com", "https://admin.example.com" ], "methods": [ "GET", "POST", "PATCH", "DELETE" ], "credentials": true, "maxAgeSeconds": 86400 }, "tls": { "enabled": true, "minVersion": "TLSv1.2", "certPath": "/etc/ssl/edge.crt", "keyPath": "/etc/ssl/edge.key" } },Basic JSON
A flat object showing every JSON value type at once.
{ string, number, boolean, null, array, object }
{ "name": "JSON Formatter", "version": 3, "stable": true, "rating": 4.87, "launchedOn": "2023-04-18", "license": "MIT", "homepage": "https://autojsonformatter.com", "maintainer": null, "downloads": 1284593, "tags": [ "json", "formatter", "validator", "viewer" ], "limits": { "maxFileMb": 50, "maxDepth": 64 }, "offline": true}Nested Objects
Organisation drilling down through departments, teams and people.
{ organization: { departments: { teams: {...} } } }
{ "organization": { "id": "org_4821", "name": "Northwind Labs", "founded": 2016, "headquarters": { "address": { "street": "900 Market Street", "suite": "Floor 12", "city": "San Francisco", "state": "CA", "postalCode": "94102", "country": "US" }, "geo": { "lat": 37.7858, "lng": -122.4064, "timezone": "America/Los_Angeles" } }, "departments": { "engineering": { "headcount": 84, "budget": { "currency": "USD", "annual": 14200000, "spentToDate": 6120400 }, "teams": { "platform": { "lead": { "name": "Amelia Hart", "email": "amelia.hart@example.com", "tenureYears": 3Arrays
Every array shape: primitives, objects, matrices, mixed and empty.
{ primitives: [...], matrix: [[...]], objects: [...] }
{ "primitives": [ 1, 2, 3, 5, 8, 13, 21, 34 ], "strings": [ "alpha", "beta", "gamma", "delta" ], "booleans": [ true, false, true, true ], "mixed": [ 42, "forty-two", true, null, { "boxed": 42 }, [ 4, 2Stress tests
Deeply Nested
Ten levels of nesting plus a recursive tree — a real collapse test.
{ root: { child: { child: { child: ... } } } }
{ "requestId": "trace_7f21c9", "root": { "level": 1, "label": "company", "meta": { "createdAt": "2024-01-01T00:00:00Z", "tags": [ "root" ] }, "child": { "level": 2, "label": "region", "meta": { "createdAt": "2024-01-02T00:00:00Z", "tags": [ "emea" ] }, "child": { "level": 3, "label": "country", "meta": { "createdAt": "2024-01-03T00:00:00Z", "tags": [ "de" ] }, "child": { "level": 4, "label": "site", "meta": { "createdAt": "2024-01-04T00:00:00Z",Large JSON
750 request-log records with summary aggregates — tests rendering speed.
{ meta, summary, records: [ 750 items ] }
{ "meta": { "dataset": "request-log", "generatedAt": "2024-06-11T00:52:00Z", "recordCount": 750, "windowSeconds": 3600, "schemaVersion": 4 }, "summary": { "byService": { "webhooks": 130, "search-index": 119, "billing-api": 125, "edge-router": 124, "media-pipeline": 113, "auth-service": 139 }, "errorRate": 0.5053, "p50DurationMs": 431, "p95DurationMs": 862, "regions": [ "us-east-1", "us-west-2", "eu-west-1", "eu-central-1", "ap-south-1", "sa-east-1" ] }, "records": [ { "id": "evt_lfls", "sequence": 0, "timestamp": "2024-06-11T00:00:00.000Z",How the samples work
Copy JSON puts the complete document — not the shortened preview — on your clipboard, pretty-printed with two-space indentation, ready to paste into a test fixture, an API mock, a scratch file or another tool. Download saves the same document as a .json file. Every sample is free to use however you like.
Open in formatter writes the sample into the editor on the home page, formats it with your current indentation setting and switches to the tree view. Nothing is uploaded: the documents are part of the page itself, so loading one is instant and works offline. From there every feature behaves as it would with your own data — search, collapse, copy a JSON path, minify, convert to CSV, YAML or XML, or generate TypeScript types.
Back to the JSON formatter — or pick a sample above and start exploring.