What YAML is, and why config tools chose it
YAML (a recursive acronym for "YAML Ain't Markup Language") is a data-serialization format that uses indentation instead of brackets and braces to express structure. It is a strict superset of JSON — every JSON document is already valid YAML — but its native block syntax is written to be read and edited by people, which is why it became the default for configuration rather than data interchange.
If you run modern infrastructure you read YAML every day: Kubernetes manifests (Deployment, Service, ConfigMap), Docker Compose files, GitHub Actions and GitLab CI workflows, Ansible playbooks, and Helm values all use it. Teams reach for it because a nested mapping reads like an outline, comments are allowed (JSON has none), and diffs stay tight — changing one setting touches one line, not a cascade of commas and closing braces.
Converting JSON to YAML is common when you already have data from an API response, a database export, or a JSON config and need to drop it into one of those tools. Because YAML is a JSON superset, the conversion is lossless for structure: objects become mappings, arrays become sequences, and scalars carry across unchanged — with quoting added only where a bare value would otherwise be misread.