Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (40 sloc) 557 Bytes
=== Tags in Implicit Mapping
--- from: NimYAML tests
--- tags: tag mapping
--- in-yaml
!!str a: b
c: !!int 42
e: !!str f
g: h
!!int 23: !!bool false
--- in-json
{
"a": "b",
"c": 42,
"e": "f",
"g": "h",
"23": false
}
--- out-yaml
!!str a: b
c: !!int 42
e: !!str f
g: h
!!int 23: !!bool false
--- test-event
+STR
+DOC
+MAP
=VAL <tag:yaml.org,2002:str> :a
=VAL :b
=VAL :c
=VAL <tag:yaml.org,2002:int> :42
=VAL :e
=VAL <tag:yaml.org,2002:str> :f
=VAL :g
=VAL :h
=VAL <tag:yaml.org,2002:int> :23
=VAL <tag:yaml.org,2002:bool> :false
-MAP
-DOC
-STR