Convert YAML to JSON and back. The YAML parser is intentionally simple (line-based, 2-space indented) — it handles maps, lists, nested blocks, scalars and block strings.
YAML subset supported
key: value (use 2-space indentation for nesting)- [1,2] or {a:1}|#--- are strippedNot supported: flow collections across lines, anchors/aliases (&/*), tags (!!), multi-line plain scalars. For complex YAML, use a full parser library.