Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (35 sloc) 659 Bytes
=== Spec Example 2.25. Unordered Sets
--- from: http://www.yaml.org/spec/1.2/spec.html#id2761758
--- tags: spec mapping unknown-tag explicit-key
--- in-yaml(<)
# Sets are represented as a
# Mapping where each key is
# associated with a null value
--- !!set
? Mark McGwire
? Sammy Sosa
? Ken Griff
--- out-yaml(<)
--- !!set
Mark McGwire:
Sammy Sosa:
Ken Griff:
--- in-json(<)
{
"Mark McGwire": null,
"Sammy Sosa": null,
"Ken Griff": null
}
--- test-event
+STR
+DOC ---
+MAP <tag:yaml.org,2002:set>
=VAL :Mark McGwire
=VAL :
=VAL :Sammy Sosa
=VAL :
=VAL :Ken Griff
=VAL :
-MAP
-DOC
-STR