Re: [JSON] What *is* JSON?

From: Nathan <nathan@webr3.org>
Subject: Re: [JSON] What *is* JSON?
Date: Wed, 23 Mar 2011 15:27:54 -0500

> Peter Frederick Patel-Schneider wrote:
>> According to http://www.json.org/
>> 
>> { "foo" : 3 ,
>>   "foo" : 1 ,
>>   "foo" : 4 ,
>>   "foo" : 5 ,
>>   "foo" : 9 
>> }
>> 
>> is valid JSON.
>> 
>> Is this correct?  
> 
> Sadly that's valid JSON, but when JSON.parse'd it would produce an 
> object as such:
> 
> {
>   foo: 9
> }
> 
> Since the keys of an object have to be unique.

Again, I don't see this specified anywhere.

peter

Received on Thursday, 24 March 2011 11:40:14 UTC