YAML Ordered Mappings with !!omap
!!omap defines an ordered sequence of key:value pairs without duplicates.
For example:
ordered: !!omap
- Tom Nolan: 23
- Ryan Raynolds: 45
- Thomas Anderson: 28{
"ordered": [
{"Tom Nolan": 23},
{"Ryan Raynolds": 45},
{"Thomas Anderson": 28}
]
}