Re: [Json] The names within an object SHOULD be unique.

"Markus Lanthaler" <markus.lanthaler@gmx.net> Fri, 07 June 2013 09:04 UTC

Return-Path: <markus.lanthaler@gmx.net>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E41A21F96FB for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 02:04:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.15
X-Spam-Level:
X-Spam-Status: No, score=-1.15 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, MSGID_MULTIPLE_AT=1.449]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zzb-MlfCrmEY for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 02:04:49 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by ietfa.amsl.com (Postfix) with ESMTP id 0C78721F8F6E for <json@ietf.org>; Fri, 7 Jun 2013 02:04:48 -0700 (PDT)
Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LiFuH-1TybPg3esN-00nQAv for <json@ietf.org>; Fri, 07 Jun 2013 11:04:47 +0200
Received: (qmail invoked by alias); 07 Jun 2013 09:04:47 -0000
Received: from 84-115-182-43.dynamic.surfer.at (EHLO Vostro3500) [84.115.182.43] by mail.gmx.net (mp029) with SMTP; 07 Jun 2013 11:04:47 +0200
X-Authenticated: #419883
X-Provags-ID: V01U2FsdGVkX1+pFWR2GlepjawzAw0L6hcg/OH8T4O1YWEhVgtGzS Rt8aZJo194FLp0
From: Markus Lanthaler <markus.lanthaler@gmx.net>
To: json@ietf.org
References: <51AF8479.5080002@crockford.com> <CAK3OfOgtYoPRZ-Gj5G8AnNipDyxYs=6_KD=rQTxKbhDPX6FZNA@mail.gmail.com> <51b1168c.e686440a.5339.5fc4SMTPIN_ADDED_BROKEN@mx.google.com> <CAK3OfOhL3zXHfg9EEDWLXhjLQ1aBvvxikKAiR+nUpDHJaVh+Qg@mail.gmail.com>
In-Reply-To: <CAK3OfOhL3zXHfg9EEDWLXhjLQ1aBvvxikKAiR+nUpDHJaVh+Qg@mail.gmail.com>
Date: Fri, 07 Jun 2013 11:04:40 +0200
Message-ID: <009801ce635e$0bef7080$23ce5180$@lanthaler>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Ac5jE+PvH2bEj5xLTDODI7P1Tx6nyQASfdaw
Content-Language: de
X-Y-GMX-Trusted: 0
Subject: Re: [Json] The names within an object SHOULD be unique.
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Jun 2013 09:04:55 -0000

On Friday, June 07, 2013 2:14 AM, Nico Williams wrote:
>On Jun 6, 2013 6:09 PM, "Markus Lanthaler" <markus.lanthaler@gmx.net> wrote:
>>
>> On Sent: Friday, June 07, 2013 12:22 AM, Nico Williams wrote:
>> > Having thought this far, I propose this text:
>> >
>> >    Encoders SHOULD NOT send duplicate keys.  Some encoders might not
>> > be able to prevent duplicate keys.  Therefore parsers MUST be prepared
>> > to handle duplicate keys.
>>
>> -1, it is very reasonable to reject such JSON.
>
>I wrote "handle", not "accept".

If your "handle" implies that an error might be raised then it would be OK but I believe most people wouldn't understand it that way.



--
Markus Lanthaler
@markuslanthaler