Skip to content

test_parsing: Exercise an octal escape#137

Open
smcv wants to merge 1 commit intonst:masterfrom
smcv:octal
Open

test_parsing: Exercise an octal escape#137
smcv wants to merge 1 commit intonst:masterfrom
smcv:octal

Conversation

@smcv
Copy link

@smcv smcv commented Oct 15, 2024

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: #136

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: nst#136
Signed-off-by: Simon McVittie <smcv@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

octal escapes not tested

1 participant