A JSON object groups related data under named keys inside curly braces. Naming each value makes nested information easier to understand and reference than a pile of anonymous array positions. section 3.5.2
From positions to meaning
A seven-by-four array can represent days and times, but its repeated rows are hard to recognize. An object can label those rows with keys such as "Sunday" and "Monday", making the structure readable at a glance. section 3.5.2
Use objects when you need to:
- Group numbers, strings, Booleans, arrays, or other related values under one name. section 3.5.2
- Replace confusing positional repetition with labels that reveal what each value represents. section 3.5.2
- Nest structured records, such as fruit names and taste scores, inside a larger object. section 3.5.2
{
"title": "Fruits",
"version": 1.1,
"data": [
{
"fruit_name": "Fuyu Persimmons",
"taste_score": 100
},
{
"fruit_name": "Mangos",
"taste_score": 100
},
{
"fruit_name": "Peaches + Nectarines",
"taste_score": 100
},
{
"fruit_name": "Bananas",
"taste_score": 80
},
{
"fruit_name": "Kiwis",
"taste_score": 70
},
{
"fruit_name": "Apples",
"taste_score": 60
},
{
"fruit_name": "Oranges",
"taste_score": 50
}
]
}
Inspect a complete nested object containing metadata and an array of fruit records. section 3.5.2






