Same Data, Fewer Opinions About Whitespace
You need this when a YAML config has to feed something that only reads JSON: an API payload, a JavaScript app, a tool that chokes on indentation. YAML is a superset of JSON in practice, so the data survives. Mappings become objects, sequences become arrays, and unquoted values like 42 or true become real numbers and booleans.
What you lose: comments vanish, since JSON has no place for them. Anchors and aliases get expanded into duplicated data. Watch for surprises too. Older YAML parsers read "no" as false and "010" as octal, so quote anything that must stay a string.
What are YAML and JSON?
YAML: readable structured data often used for configuration
JSON: structured data used by most web applications
How it works
- Choose your YAML file.
- Check that JSON is selected and press convert.
- Download your new file. We delete both files automatically.
