How to use JSON to YAML
- Paste JSON, for example an OpenAPI document or a Kubernetes manifest in JSON form.
- Choose a 2 or 4 space indent.
- Copy the YAML into your config file.
About JSON to YAML
YAML is a superset of JSON in practice, which means every JSON file can be expressed as YAML. The difference is readability: no braces, no quotes around most strings, and indentation instead of punctuation. That is why Kubernetes, Docker Compose, GitHub Actions, Ansible and OpenAPI all lean on it.
The converter writes block style YAML. Strings are only quoted when they have to be, for instance when they look like numbers or booleans, so "true" stays a string and does not turn into a boolean on the other side.