All tutorials
Common JSON Patterns
These patterns appear everywhere in real applications.
List of Objects (API responses)
The most common pattern — an array of uniform objects. Used by almost every REST API.
[
{"id": 1, "name": "Alice", "email": "[email protected]"},
{"id": 2, "name": "Bob", "email": "[email protected]"}
]Nested Configuration
Objects inside objects for grouping. Perfect for app config, feature flags, and settings.
{
"database": {
"host": "localhost",
"port": 5432,
"name": "mydb"
},
"features": {
"darkMode": true,
"notifications": false
}
}Key-Value Lookup (Dictionary)
Flat object as a map. Great for currency rates, translations, or status codes.
{
"USD": 1.0,
"EUR": 0.92,
"GBP": 0.79,
"JPY": 149.50
}