Parses string as a single YAML document. Throws YAMLException on
error. This function does not understand multi-document or empty sources; it
throws an exception on those.
All exceptions MUST be caught, not just YAMLException.
The default CORE_SCHEMA comes without the !!merge tag. You can
easily enable it if needed.
The default mapTag is {}-object based, with known limitations
(see description). For full compatibility use realMapTag
instead (it uses native JS Map).
Parses
stringas a single YAML document. Throws YAMLException on error. This function does not understand multi-document or empty sources; it throws an exception on those.!!mergetag. You can easily enable it if needed.{}-object based, with known limitations (see description). For full compatibility use realMapTag instead (it uses native JSMap).