JSON to YAML converter
Write a YAML representation of a supported JSON document using a fixed JSON-to-YAML conversion.
Worked input and output
Input
{"name":"Ada","enabled":true}Output
name: Ada enabled: true
The JSON string remains a YAML string and the boolean remains a boolean. The formatter chooses YAML spelling and two-space indentation where nesting is present.