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

"Markus Lanthaler" <markus.lanthaler@gmx.net> Thu, 06 June 2013 17:11 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 3CE0621F9A30 for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 10:11:00 -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=[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 nx+PdXRe-on1 for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 10:10:54 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by ietfa.amsl.com (Postfix) with ESMTP id 2503F21F9A75 for <json@ietf.org>; Thu, 6 Jun 2013 10:10:53 -0700 (PDT)
Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MHdX0-1Unx5s3mE0-003IhR for <json@ietf.org>; Thu, 06 Jun 2013 19:10:52 +0200
Received: (qmail invoked by alias); 06 Jun 2013 17:10:52 -0000
Received: from 84-115-182-43.dynamic.surfer.at (EHLO Vostro3500) [84.115.182.43] by mail.gmx.net (mp001) with SMTP; 06 Jun 2013 19:10:52 +0200
X-Authenticated: #419883
X-Provags-ID: V01U2FsdGVkX18UlmRDK1AUPlPTfy3gXI0W9WBhbfDdub6Ju3eWpm 22DmigKFSIy/cc
From: Markus Lanthaler <markus.lanthaler@gmx.net>
To: json@ietf.org
References: <51AF8479.5080002@crockford.com> <51AF9ACF.5020507@cisco.com> <D0A99569-0915-4862-A7AE-9DE51C2E90C0@yahoo.com> <51AFB3F8.8060708@crockford.com> <8F32953C-C788-4DC9-888E-920E2BEB7FDD@yahoo.com> <831B8E46-F239-4353-8F95-8DF3F9BD2E78@yahoo.com> <51AFC924.2030805@crockford.com> <DA7A83A2-1C1F-4E74-BF6A-DA943B07AB59@vpnc.org>
In-Reply-To: <DA7A83A2-1C1F-4E74-BF6A-DA943B07AB59@vpnc.org>
Date: Thu, 06 Jun 2013 19:10:44 +0200
Message-ID: <00b601ce62d8$c9eddcb0$5dc99610$@lanthaler>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
thread-index: Ac5iyepZqDgj2J6GQwWCk5XH5IbjNQADp7BQ
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: Thu, 06 Jun 2013 17:11:00 -0000

On Thursday, June 06, 2013 5:24 PM, Paul Hoffman wrote:
> Proposal:
> 
> In Section 2.2:
> Current:
>    The names within an object SHOULD be unique.
> Proposed:
>    If the names within an object are not unique, the result of parsing
> the
>    object is unpredictable, and the parse may even fail completely.
> Thus,
>    the names within an object SHOULD be unique.
> 
> In Section 4, add a new paragraph:
>    If a parser encounters an object with duplicate names, the parser MAY
>    fail to parse the JSON text; if the parser accepts objects with
duplicate
>    names, it SHOULD accept only the last name/value pair that has the
>    duplicate name.

+1 if the last SHOULD is replaced with a MUST



--
Markus Lanthaler
@markuslanthaler