Pseudo-JSON with unquoted property names

Robert Sayre sayrer at
Fri Jun 5 19:12:42 PDT 2009

On Fri, Jun 5, 2009 at 10:08 PM, John Cowan<cowan at> wrote:
> Robert Sayre scripsit:
>> Allowing unquoted names would result in documents that break many
>> implementations on
> They are not allowed in the sense that they are generated, only in
> the sense that they are accepted.  Whether they *should* be accepted
> is another thing.

Some people see that as a useful distinction. I'm not one of them :)

>> some other langauages, but don't allow unquoted names. A more liberal
>> "parseObjectLiteral" capability might be nice for a future standard.
>> This would even break Firefox 3's JSON functionality (used internally
>> and available to extensions).
> Which functionality, the parser or the generator?

The parser.

- Rob

More information about the es5-discuss mailing list