« Bugzilla Issues Index

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

JSONEscapeSequence is different between section "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

JSONEscapeSequence ::
u HexDigit HexDigit HexDigit HexDigit

WRONG (annex A.8.1)

JSONEscapeSequence ::

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