JSONTestSuite icon indicating copy to clipboard operation
JSONTestSuite copied to clipboard

octal escapes not tested

Open smcv opened this issue 1 year ago • 0 comments

In JavaScript, "\012" or equivalently "\12" is a deprecated way to spell "\u000a" (same as "\012" or "\x0a" in C). In JSON, it's an undefined (hence invalid) escape sequence, just like "\x".

Different parsers might implement this differently (for example json-glib historically accepted "\012" as an extension) so it seems worthwhile to include in the test corpus.

smcv avatar Oct 14 '24 18:10 smcv