Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 393 Bytes
=== Spec Example 6.29. Node Anchors
--- from: http://www.yaml.org/spec/1.2/spec.html#id2785977
--- tags: spec alias
--- in-yaml
First occurrence: &anchor Value
Second occurrence: *anchor
--- in-json
{
"First occurrence": "Value",
"Second occurrence": "Value"
}
--- test-event
+STR
+DOC
+MAP
=VAL :First occurrence
=VAL &anchor :Value
=VAL :Second occurrence
=ALI *anchor
-MAP
-DOC
-STR