JSON to YAML
Turns JSON into readable YAML for configuration files.
Paste a YAML config to get formatted JSON, with anchors and aliases expanded. The YAML to JSON converter points to the exact line and column of any error.
.yaml or .yml file up to 5 MB.&name), aliases (*name), and << merge keys are expanded into full copies of the data.--- become a JSON array, with a note.Input:
base: &b retries: 3 prod: <<: *b host: api.example.com
Output:
{
"base": {
"retries": 3
},
"prod": {
"retries": 3,
"host": "api.example.com"
}
}Two documents separated by --- give a JSON array with 2 elements.
<< merge, so you can confirm the final values a program will see.!!python/object, give an error.JSON has no comments, so they are removed.
Yes. They are expanded into full copies of the referenced data, including << merge keys.
Each document separated by --- becomes one element of a JSON array.
YAML allows only spaces for indentation. Replace the tabs with spaces.
Often used together with the YAML to JSON.
Turns JSON into readable YAML for configuration files.
Converts YAML documents into well-formed, indented XML.
Finds YAML syntax errors by line and reformats YAML with clean indentation.