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

Re: [JSON] What *is* JSON?

From: Nathan <nathan@webr3.org>
Date: Wed, 23 Mar 2011 20:27:54 +0000
Message-ID: <4D8A57CA.1060108@webr3.org>
To: Peter Frederick Patel-Schneider <pfps@research.bell-labs.com>
CC: public-rdf-wg@w3.org
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.
Received on Wednesday, 23 March 2011 20:28:54 UTC

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