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

Benji York benji at benjiyork.com
Mon Mar 17 16:42:22 CET 2008


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'] results in the integer 2.
-- 
Benji York
http://benjiyork.com


More information about the Web-SIG mailing list