--- JSON-XS/XS.pm 2009/08/08 10:06:02 1.123 +++ JSON-XS/XS.pm 2009/08/09 16:01:39 1.124 @@ -1270,12 +1270,12 @@ This will I generate JSON texts that also parse as valid YAML. Please note that YAML has hardcoded limits on (simple) object key lengths that JSON doesn't have and also has different and incompatible -unicode handling, so you should make sure that your hash keys are -noticeably shorter than the 1024 "stream characters" YAML allows and that -you do not have characters with codepoint values outside the Unicode BMP -(basic multilingual page). YAML also does not allow C<\/> sequences in -strings (which JSON::XS does not I generate, but other JSON -generators might). +unicode character escape syntax, so you should make sure that your hash +keys are noticeably shorter than the 1024 "stream characters" YAML allows +and that you do not have characters with codepoint values outside the +Unicode BMP (basic multilingual page). YAML also does not allow C<\/> +sequences in strings (which JSON::XS does not I generate, but +other JSON generators might). There might be other incompatibilities that I am not aware of (or the YAML specification has been changed yet again - it does so quite often). In @@ -1304,6 +1304,12 @@ real compatibility for many I and trying to silence people who point out that it isn't true. +Addendum/2009: the YAML 1.2 spec is still incomaptible 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 and +corrupting userdata is so much easier. + =back