Parse a YAML document into a DOM object.
Unknown keys are preserved and scalars are converted to the matching DOM type (integer, then boolean, then null, otherwise string). The result is empty when the YAML is empty or its root is not a mapping.
The parsed DOM object.
| Name | Description |
|---|---|
| yaml | The YAML document to parse. |