---
key a: 1
key b:
- item 1
- item 2
parse ->
1. stream-start
2. document-start
3. mapping-start
4. scalar 'key a'
5. scalar '1'
6. scalar 'key b'
7. sequence-start
8. scalar 'item 1'
9. scalar 'item 2'
10. sequence-end
11. mapping-end
12. document-end
13. stream-end
construct ->
$document = {
'key a' => 1,
'key b' => [
'item 1',
'item 2',
],
};