Every JSON document is already valid YAML — so why convert?
YAML 1.2 is a superset of JSON: you could paste JSON into most YAML parsers unchanged. The point of converting is the idiomatic block style humans actually maintain — indentation instead of braces, dash lists instead of bracketed arrays, unquoted strings where safe. That is the style Kubernetes manifests, GitHub Actions workflows, and docker-compose files are written in, and the style reviewers expect in a pull request touching config.
How quoting decisions are made
The converter quotes strings only when leaving them bare would change their meaning: values that look like numbers or booleans ("true", "007"), strings with leading or trailing spaces, YAML-special characters like colons followed by spaces, and reserved words such as null. Everything else stays unquoted for readability. Keys and value data are preserved exactly — converting back to JSON returns the identical document. Note that JSON has no comments, so the output has none either; add comments after conversion if your config needs them.