Special mapping keys
YAML serialization

Prev:Mapping between Factor and YAML types
Next:YAML errors


The following special keys have been implemented for !!map. By default, these keys will be taken into account when deserializing yaml documents. To keep the original document structure, configuration variables can be set. See YAML control variables.

!!merge
See http://yaml.org/type/merge.html

As per http://sourceforge.net/p/yaml/mailman/message/12308050, the merge key is implemented bottom up:

USING: yaml prettyprint ; " foo: 1 <<: bar: 2 <<: baz: 3 " yaml> .
H{ { "baz" 3 } { "foo" 1 } { "bar" 2 } }


!!value
See http://yaml.org/type/value.html

USING: yaml prettyprint ; " --- # Old schema link with: - library1.dll - library2.dll --- # New schema link with: - = : library1.dll version: 1.2 - = : library2.dll version: 2.3 " yaml-docs> .
{ H{ { "link with" { "library1.dll" "library2.dll" } } } H{ { "link with" { "library1.dll" "library2.dll" } } } }