On 2013-09-10 02:20, Manger, James H wrote:
>> If restoring \n would make you happ{y|ier} I would do that immediately.
>> But I guess you require the whole bunch of escapes, right?
>
> Correct. 34 chars must be escaped to comply with JSON, including U+0000 to
> U+001F.
I will update the scheme but I'm a bit unsure on the result:
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
"a Unicode escape sequence occurring within a string literal in an
ECMAScript program always contributes a character to the String value
of the literal and is never interpreted as a line terminator or as a
quote mark that might terminate the string literal"
Chrome:
JSON.parse ('{"esq":"\u000a"}');
SyntaxError: Unexpected token
I will adhere to Chrome's interpretation.
Anders
>
> --
> James Manger
>
_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose