--- JSON-XS/XS.pm 2009/02/17 23:29:38 1.115 +++ JSON-XS/XS.pm 2009/02/17 23:41:20 1.116 @@ -1240,6 +1240,13 @@ in unicode texts, so they can simply be used to fix any parsers relying on C by first applying the regexes on the encoded texts. +Note also that the above only works for U+2028 and U+2029 and thus +only for fully ECMAscript-compliant parsers. Many existing javascript +implementations misparse other characters as well. Best rely on a good +JSON parser, such as Douglas Crockfords F, which escapes the +above and many more problematic characters properly before passing them +into C. + Another problem is that some javascript implementations reserve some property names for their own purposes (which probably makes them non-ECMAscript-compliant). For example, Iceweasel reserves the