Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (37 sloc) 524 Bytes
=== Spec Example 8.17. Explicit Block Mapping Entries
--- from: http://www.yaml.org/spec/1.2/spec.html#id2798425
--- tags: spec mapping comment literal
--- in-yaml
? explicit key # Empty value
? |
block key
: - one # Explicit compact
- two # block value
--- in-json
{
"explicit key": null,
"block key\n": [
"one",
"two"
]
}
--- out-yaml
explicit key:
? |
block key
: - one
- two
--- test-event
+STR
+DOC
+MAP
=VAL :explicit key
=VAL :
=VAL |block key\n
+SEQ
=VAL :one
=VAL :two
-SEQ
-MAP
-DOC
-STR
You can’t perform that action at this time.