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

FieldTypeNotes
appobjectname, version, environment
serverobjecthost, port, timeout, nested cors
databaseobjectengine, host, nested pool {min, max}
cacheobjectprovider, TTL, cluster array
featuresobjectflags + nested rateLimit
loggingobjectlevel, 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 →