Re: [xml-dev] Multiple instances of an attribute Re: [xml-dev] Towards XML 2.0

From
Stephen Green <>
To
David Carlisle <>
Date
2010-12-09T15:01:06Z
ID
<>
Thread
Re: [xml-dev] Multiple instances of an attribute Re: [xml-dev] Towards XML 2.0
> { "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 <> 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
>