They all turn into the same data types in the end. You can import a YAML and output a JSON.
For a feature like references, you'd have to do the annoying thing and duplicate that section of the file.
For a feature like unquoted strings or extra commas, you just quote the strings or remove the commas.
The various YAML features are in between and mostly close to the latter.