I've got a really small question about JSON objects. I've just read that:
JSON is built on two structures:
A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.
Now I have this example JSON object
{
"firstName": "Peter",
"lastName": "Meier",
"age": 25,
"childs":["Fritz","Julia"],
"address":
{
"streetAddress": "21 Pilatusstrasse",
"city": "Lucerne",
"postalCode": "6000"
},
}
Its clear that the first 3 entries are name/value pairs and the 4th is a list. But what exactly is the 5th entry "address"? Is this seen as a name/value pair, where its value is a JSON object which itself again contains name/value pairs?
Thanks for the quick enlightning.