by bin_bash · 4y ago · 0 comments
1: https://yaml.org/spec/1.2.2/#chapter-5-character-productions
> To ensure JSON compatibility, YAML processors must allow all non-C0 characters inside quoted scalars.
The wording here is admittedly confusing, but it does ensure that YAML can handle all JSON strings.
Relevant (open) PR: https://github.com/yaml/pyyaml/pull/555
> Addendum/2009: the YAML 1.2 spec is still incompatible with JSON, even though the incompatibilities have been documented (and are known to Brian) for many years and the spec makes explicit claims that YAML is a superset of JSON. It would be so easy to fix, but apparently, bullying people and corrupting userdata is so much easier.