read String
Parses a YAML string directly into a flat/nested map.
Primarily useful for unit tests and scenarios where the YAML content is already available in memory (e.g. fetched from a remote source).
This method is thread-safe - each thread uses its own Yaml parser instance.
Return
A map representing the top-level YAML mapping, or an empty map if the content is empty or does not contain a mapping.
Parameters
content
The raw YAML string to parse.