Sample nested config in JSON
A realistic application config: server settings, TLS options, and feature flags nested three levels deep. Copy it for testing, or open it in the viewer with one click.
A realistic application config: server settings, TLS options, and feature flags nested three levels deep. Copy it for testing, or open it in the viewer with one click.
Config files nest by concern: each section groups the settings one subsystem needs. This sample mirrors that shape with server, TLS, features, and limits sections.
{
"app": "jsonblocks",
"version": "2.4.0",
"server": {
"host": "localhost",
"port": 8080,
"tls": {
"enabled": true,
"minVersion": "1.3"
}
},
"features": {
"darkMode": true,
"experimental": ["windowing", "worker-search"],
"limits": {
"maxDocumentMb": 50,
"maxDepth": 100
}
},
"retired": null
}Follow the viewer link to load this exact document.
Collapse the server and features branches to compare sections.
Pin $.features.limits.maxDepth and copy it into a config lookup.
Use the open-in-viewer link on this page: it loads this exact document into the block visualizer with repeated shapes pre-collapsed.
JSON wins when configs are machine-generated or strictly validated; YAML wins for hand-edited files thanks to comments. Convert between them with the JSON to YAML tool.
Prefer environment variables or a secret manager for credentials. If secrets must sit in JSON, keep the file out of version control and never paste it into online tools you do not trust - jsonblocks runs fully locally.