[Home] [By Thread] [By Date] [Recent Entries]

  • From: Stephen Green <stephengreenubl@g...>
  • To: David Carlisle <davidc@n...>
  • Date: Thu, 9 Dec 2010 15:01:06 +0000

> { "foo" : "bar" , "foo" : "spam" }
>
> Is legal JSON ?

But the array

{ "foo": ["bar", "spam"] }

amounts to the same thing doesn't it?


----
Stephen D Green



On 9 December 2010 14:46, David Carlisle <davidc@n...> wrote:
> On 09/12/2010 14:40, David Lee wrote:
>>
>> JSON allows object members of the same name ? that's news to me
>>
>> { "foo" : "bar" , "foo" : "spam" }
>>
>> Is legal JSON ?
>>
>>
>
> http://www.ietf.org/rfc/rfc4627.txt
>
>   The names within an object SHOULD be unique.
>
>
> David
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member