[OpenLayers-Users] specifying options for OL class properties--when to use quotes?

Christopher Schmidt crschmidt at metacarta.com
Thu Jul 24 19:33:14 EDT 2008


On Thu, Jul 24, 2008 at 06:07:02PM -0500, Erik Uzureau wrote:
> it was explained to me at some point in life that the "proper" JSON
> notation was
> putting quotes (single?) around the key names, ie:

"Double", but I never let that affect my Javascript. 

  { "a": { 
     "b":"c"
    }
  }

Is valid JSON, but I don't like it as Javascript.

I'm not particularly consistent between quoting and not quoting.
Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list