Convert YAML into JSON when a tool, API or script only accepts JSON. Anchors and aliases are resolved, and multi-document YAML files are handled so nothing is dropped.
Common uses
- Turning a Kubernetes or CI YAML file into JSON for scripting
- Exporting an API response to CSV for a spreadsheet
- Typing an unfamiliar API by generating interfaces from a sample response
Frequently asked questions
- What happens to YAML comments?
- They are removed, since JSON has no comment syntax.
- Are anchors and aliases supported?
- Yes. Aliased values are expanded into the output.