Pseudo-JSON with unquoted property names

Douglas Crockford douglas at crockford.com
Fri Jun 5 14:22:28 PDT 2009


Dion Almaer wrote:
> There key here being that 'class' is a keyword.
> 
> Personally having to quote things is frustrating if you think of JSON as 
> not a data format but something that developers tinker with. I am always 
> getting JSON "wrong" while I tinker in development, especially when an 
> eval() is around at some point and it works. It is a subtle developer 
> ergonomic issue vs. the safety that you get. I tend to be loose and am 
> probably wrong on this one.

You are just using the wrong tools. Perhaps you could develop some sort of 
structured editor that assists in the effortless construction of well-formed 
JSON text.


More information about the es5-discuss mailing list