JSONNumber - optional decimal

Garrett Smith dhtmlkitchen at gmail.com
Wed Jun 16 11:11:08 PDT 2010


On 6/16/10, Douglas Crockford <douglas at crockford.com> wrote:
> On 11:59 AM, Garrett Smith wrote:
>> Where in the spec is it stated that literal TAB characters in strings
>> are disallowed?
> It clearly states that ASCII control characters are not allowed in
> strings. TAB is an ASCII control character.
>


On 6/16/10, Douglas Crockford <douglas at crockford.com> wrote:
> On 11:59 AM, Garrett Smith wrote:
>> Where in the spec is it stated that literal TAB characters in strings
>> are disallowed?
> It clearly states that ASCII control characters are not allowed in
> strings. TAB is an ASCII control character.
>

The character code for TAB is 9 and so within U+0000 thru U+001F. That
is why it is disallowed. I did not know the character code for TAB was
9.

| JSONStringCharacter ::
| SourceCharacter but not double-quote " or backslash \ or U+0000 thru U+001F
| \ JSONEscapeSequence

If 127 is considered a control character, then it is not included in
that definition.

Garrett


More information about the es-discuss mailing list