JSON to YAML
Convert a JSON document into YAML.
Loading tool…
About the json to yaml
Converts JSON into YAML with two-space indentation and no reference anchors, which is the style most Kubernetes, CI and Docker Compose files use. Long strings wrap at a sensible width instead of running off the screen.
Frequently asked questions
Why does YAML quote some strings and not others?
Quoting is added only where it is needed to stop a value being read as another type. Bare yes, no, on, off and version-like numbers are the usual culprits.
Is YAML safe for untrusted input?
Only with a safe loader. Full YAML can instantiate language objects, which is a remote code execution risk. Use safe_load in Python or the equivalent in your language.