archives

« Bugzilla Issues Index

#1287 — JSON grammar differs between body and annex for JSONEscapeSequence


JSONEscapeSequence is different between section 15.12.1.1 "JSON Lexical Grammar" and annex A.8.1 "JSON Lexical Grammar". The annex allows the new \u{x...} escape sequence, but that should not be valid in JSON.

RIGHT (section 15.12.1.1)

JSONEscapeSequence ::
JSONEscapeCharacter
u HexDigit HexDigit HexDigit HexDigit

WRONG (annex A.8.1)

JSONEscapeSequence ::
JSONEscapeCharacter
UnicodeEscapeSequence


fixed in rev20 editor's draft

the JSON grammar has been removed from Ecma-262 and replaced with a normative reference to Ecma-404


fixed in rev20 draft, Oct. 28, 2013