From 91df0e5a8cadcf95ae5be96eed5b2c4a4fb47218 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 15 Oct 2024 11:38:45 +0100 Subject: [PATCH] test_parsing: Exercise an octal escape In standardized JSON, this is an error. In JavaScript, it's a deprecated alternate spelling for `"\u000a"` (012 octal = 0x000a hex), and some parsers like the one in json-glib (when not in strict mode) accept this as an extension beyond standard JSON. Resolves: https://github.com/nst/JSONTestSuite/issues/136 Signed-off-by: Simon McVittie --- test_parsing/n_string_octal_escape.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 test_parsing/n_string_octal_escape.json diff --git a/test_parsing/n_string_octal_escape.json b/test_parsing/n_string_octal_escape.json new file mode 100644 index 0000000..f18a5b5 --- /dev/null +++ b/test_parsing/n_string_octal_escape.json @@ -0,0 +1 @@ +["\012"]