Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (48 sloc) 694 Bytes
=== Spec Example 2.9. Single Document with Two Comments
--- from: http://www.yaml.org/spec/1.2/spec.html#id2760633
--- tags: spec comment
--- in-yaml(<)
---
hr: # 1998 hr ranking
- Mark McGwire
- Sammy Sosa
rbi:
# 1998 rbi ranking
- Sammy Sosa
- Ken Griffey
--- in-json
{
"hr": [
"Mark McGwire",
"Sammy Sosa"
],
"rbi": [
"Sammy Sosa",
"Ken Griffey"
]
}
--- out-yaml(<)
---
hr:
- Mark McGwire
- Sammy Sosa
rbi:
- Sammy Sosa
- Ken Griffey
--- test-event
+STR
+DOC ---
+MAP
=VAL :hr
+SEQ
=VAL :Mark McGwire
=VAL :Sammy Sosa
-SEQ
=VAL :rbi
+SEQ
=VAL :Sammy Sosa
=VAL :Ken Griffey
-SEQ
-MAP
-DOC
-STR