Using YAML to JSON: practical guide
Convert YAML to JSON
JSON is what most APIs and JavaScript tools expect, while YAML is common in configuration files. Converting lets you reuse the same data in a request, a script or a validator.
Check the types
YAML infers types, so values such as yes, no, on, 0123 or 1e3 may become booleans or numbers in the JSON. Quote values you want kept as text, and note that comments in YAML are dropped because JSON has no comments.