Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (48 sloc) 635 Bytes
=== Spec Example 8.22. Block Collection Nodes
--- from: http://www.yaml.org/spec/1.2/spec.html#id2800008
--- tags: sequence mapping tag
--- in-yaml
sequence: !!seq
- entry
- !!seq
- nested
mapping: !!map
foo: bar
--- in-json
{
"sequence": [
"entry",
[
"nested"
]
],
"mapping": {
"foo": "bar"
}
}
--- out-yaml
sequence: !!seq
- entry
- !!seq
- nested
mapping: !!map
foo: bar
--- test-event
+STR
+DOC
+MAP
=VAL :sequence
+SEQ <tag:yaml.org,2002:seq>
=VAL :entry
+SEQ <tag:yaml.org,2002:seq>
=VAL :nested
-SEQ
-SEQ
=VAL :mapping
+MAP <tag:yaml.org,2002:map>
=VAL :foo
=VAL :bar
-MAP
-MAP
-DOC
-STR
You can’t perform that action at this time.