How this tool computes its result
Bidirectional conversion using the `yaml` package for parsing/stringifying and native `JSON.parse`/`JSON.stringify` for the JSON side. In JSON-to-YAML mode, the input is parsed with `JSON.parse` (strict JSON only, no trailing commas or unquoted keys) then serialized with `stringify()` from the `yaml` library. In YAML-to-JSON mode, `parse()` reads the YAML into a JS object which is then rendered with `JSON.stringify(obj, null, 2)`. Any parse failure in either direction is caught and its message shown inline instead of a generic error.
