Sample JSON / Config
Sample Config JSON (Deeply Nested)
A single deeply nested configuration object - app metadata, server settings with nested CORS, database pools, cache clusters, feature flags with nested rate limits, and logging destinations. Built for testing anything that walks structure.
https://jsonconsole.com/api/config.json1 object, 6 sections1 KBCORS: *
Download config.json·Free for any use, no attribution required (CC0). Endpoint is stable - safe to use in tutorials and READMEs.
Preview
{
"app": {
"name": "sample-service",
"version": "3.2.1",
"environment": "production"
},
"server": {
"host": "0.0.0.0",
"port": 8080,
"timeoutSeconds": 30,
"cors": {
"enabled": true,
"origins": [
"https://example.com"
]
}
},
"database": {
"engine": "postgres",
"host": "db.internal",
"port": 5432,
"pool": {
"min": 2,
"max": 20
},
"ssl": true
},
"cache": {
"provider": "redis",
"ttlSeconds": 300,
"clusters": [
"cache-1.internal",
"cache-2.internal"
]
},
"features": {
"newCheckout": true,
"betaSearch": false,
"rateLimit": {
"requestsPerMinute": 120,
"burst": 40
}
},
"logging": {
"level": "info",
"format": "json",
"destinations": [
"stdout",
"s3://logs-bucket/app"
]
}
}Fields
| Field | Type | Notes |
|---|---|---|
| app | object | name, version, environment |
| server | object | host, port, timeout, nested cors |
| database | object | engine, host, nested pool {min, max} |
| cache | object | provider, TTL, cluster array |
| features | object | flags + nested rateLimit |
| logging | object | level, format, destinations array |
Fetch it in code
JavaScript
const res = await fetch(
"https://jsonconsole.com/api/config.json"
);
const data = await res.json();Python
import requests
data = requests.get(
"https://jsonconsole.com/api/config.json"
).json()What this dataset is good for
- Testing JSON-to-YAML conversion with realistic config shapes
- Deep-merge and environment-override logic
- Tree/graph visualization demos with meaningful nesting
More sample data
You might also need
Free and in-browser, like everything on JSON Console. Browse all tools →
Mock JSON GeneratorPaste one sample record and generate up to 1,000 mock records with the same structureJSON to CSVPaste a JSON array of objects on the left and get a spreadsheet-ready CSV with headers on the rightJSON to SQLPaste a JSON array and get a CREATE TABLE statement with inferred column types plus one INSERT per rowJSON ViewerExplore documents as tree, table, or graph.JSON FormatterFormat and validate with code, tree, table, and graph views.JSON ComparePaste two JSON documents and see only real differencesJWT DecoderPaste a JWT and instantly see its decoded header and payload with expiry statusJSON to TypeScriptPaste an API response and get TypeScript interfacesJSON MinifyPaste formatted JSON and get the smallest valid version