|
|
|
|
|
by Centigonal
564 days ago
|
|
I'm confused about your point about YAML being "strict superset of JSON" leading to being able to convert YAML to JSON. If YAML is a strict superset, wouldn't that mean that YAML must have at least one feature that is not part of JSON? Wouldn't that make it impossible to define all YAML files as valid 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.