YAML
Links: 300 home
Basics¶
Objects of Objects¶
{
"name": "Joe",
"age": 35,
"address": {
"streetAddress": "123 No Street",
"city": "Phantom City"
}
}
You leave an empty space after :
if you want to nest objects within objects
Array of Objects¶
-
is followed by a :
hence that value becomes an object inside the array
{
"person": [
{
"name": "Fred"
},
{
"name": "Albert"
},
{
"name": "Jay",
"age": 45
},
{
"names": "Last"
},
"nothing"
]
}
In the above example last entry doesn't have :
after it so its just an entry in the array and not an object.
Miscellaneous¶
Last updated: 2022-05-27