{
"title": "Shopping List",
"items": [ "item1", "item2" ],
"location": {
"country": "Nepal",
"city": "Kathmandu"
}
}
title: Shopping List
items:
- item1
- item2
location:
country: Nepal
city: Kathmandu
NOTE: Please note how arrays and object style of representing data is done in JSON and YAML.
We don't always use YAML because it is slow to parse than that of JSON.