Re: [Web-SIG] JSON object names (was Re: Time a for JSON parser in the standard library?)

2008-03-17 Thread Bob Ippolito
On Mon, Mar 17, 2008 at 7:51 AM, Matt Goodall <[EMAIL PROTECTED]> wrote: > Hi, > > One thing I keep meaning to mention, prompted by the possibility of > simplejson being sucked into the std lib, is the handling of JSON object > names. > >"An object structure is represented as a pair of curly

[Web-SIG] JSON object names (was Re: Time a for JSON parser in the standard library?)

2008-03-17 Thread Matt Goodall
Hi, One thing I keep meaning to mention, prompted by the possibility of simplejson being sucked into the std lib, is the handling of JSON object names. "An object structure is represented as a pair of curly brackets surrounding zero or more name/value pairs (or members). ***A name is a

Re: [Web-SIG] JSON object names (was Re: Time a for JSON parser in the standard library?)

2008-03-17 Thread Benji York
Matt Goodall wrote: > I noticed simplejson (and others, I suspect) allow more types than just > a string to be given as a name, although they're always deserialised to > unicode instances: I suspect the intent is to mirror JavaScript's propensity for coercion. For example, evaluating {1: 2}['1'