Re:YAML: The Norway Problem (2022)
by mannykannot on Saturday April 12, 2025 @10:03PM
(#43669442)
Are there no cases where well-formed JSON could be subject to the problems covered in the article, when parsed by a compliant YAML parser? I'm asking because I know nothing about YAML and not much more about JSON.
[ Parent
| on HN ]
Re:YAML: The Norway Problem (2022)
by charrondev on Saturday April 12, 2025 @10:08PM
(#43669467)
Not that I know. JSON requires strings to be quoted which is basically the problem here. Of course it’s not a great human writable configuration format (no comments being a huge problem).
I’m just pointing out that it should be very simple to swap a YAML file for a JSON file in any system that accepts YAML
Re:YAML: The Norway Problem (2022)
by makeitdouble on Saturday April 12, 2025 @10:38PM
(#43669617)
JSON is stricter than YAML so that class of issues is avoided.