Skip to content
Permalink
master
Switch branches/tags
Go to file
Some was done with bin/fix-json and some by hand.
4 contributors

Users who have contributed to this file

@ingydotnet @flyx @rogpeppe @perlpunk
=== Spec Example 2.4. Sequence of Mappings
--- from: http://www.yaml.org/spec/1.2/spec.html#id2760193
--- tags: sequence mapping spec
--- in-yaml
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
--- in-json
[
{
"name": "Mark McGwire",
"hr": 65,
"avg": 0.278
},
{
"name": "Sammy Sosa",
"hr": 63,
"avg": 0.288
}
]
--- out-yaml
- name: Mark McGwire
hr: 65
avg: 0.278
- name: Sammy Sosa
hr: 63
avg: 0.288
--- test-event
+STR
+DOC
+SEQ
+MAP
=VAL :name
=VAL :Mark McGwire
=VAL :hr
=VAL :65
=VAL :avg
=VAL :0.278
-MAP
+MAP
=VAL :name
=VAL :Sammy Sosa
=VAL :hr
=VAL :63
=VAL :avg
=VAL :0.288
-MAP
-SEQ
-DOC
-STR