塊樣式對映
使用隱式鍵:
key: value
another key:
- some
- more
- values
[1, 2, 3]: last value, which has a flow style key
使用隱式和顯式鍵:
? key
: value
another key:
- some
- more
- values
? [1, 2, 3]
: last value, which has a flow style key
key
,another key
和 [1, 2, 3]
是相同對映的鍵,儘管它們使用不同的鍵樣式。
巢狀對映:
first level:
second level:
? third level
:
forth level: value of implicit key
? third level, second key
: value of explicit key
?
mapping as: key of
another: mapping
: scalar value of mapping key
first level, second key:
last value