%YAML 1.1 --- - name: spec-10-02 yaml: | [ "double quoted", 'single quoted', plain text, [ nested ], single: pair , ] tree: | +STR +DOC +SEQ [] =VAL "double quoted =VAL 'single quoted =VAL :plain text +SEQ [] =VAL :nested -SEQ +MAP {} =VAL :single =VAL :pair -MAP -SEQ -DOC -STR - name: spec-10-02-canonical yaml: | %YAML 1.1 --- !!seq [ !!str "double quoted", !!str "single quoted", !!str "plain text", !!seq [ !!str "nested", ], !!map { ? !!str "single" : !!str "pair" } ] tree: | +STR +DOC --- +SEQ [] =VAL "double quoted =VAL "single quoted =VAL "plain text +SEQ [] =VAL "nested -SEQ +MAP {} =VAL "single =VAL "pair -MAP -SEQ -DOC -STR