Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 422 Bytes
=== Spec Example 6.23. Node Properties
--- from: http://www.yaml.org/spec/1.2/spec.html#id2783940
--- tags: spec tag alias
--- in-yaml
!!str &a1 "foo":
!!str bar
&a2 baz : *a1
--- in-json
{
"foo": "bar",
"baz": "foo"
}
--- out-yaml
&a1 !!str "foo": !!str bar
&a2 baz: *a1
--- test-event
+STR
+DOC
+MAP
=VAL &a1 <tag:yaml.org,2002:str> "foo
=VAL <tag:yaml.org,2002:str> :bar
=VAL &a2 :baz
=ALI *a1
-MAP
-DOC
-STR