W3C home > Mailing lists > Public > public-rdf-wg@w3.org > March 2011

Re: [JSON] What *is* JSON?

From: Peter Frederick Patel-Schneider <pfps@research.bell-labs.com>
Date: Thu, 24 Mar 2011 07:39:33 -0400
Message-ID: <20110324.073933.1150152002804546122.pfps@research.bell-labs.com>
To: <public-rdf-wg@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:04 UTC