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

"Markus Lanthaler" <markus.lanthaler@gmx.net> Thu, 06 June 2013 23:08 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 8499521E805A for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 16:08:58 -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 sAZSHIN4s8iu for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 16:08:52 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by ietfa.amsl.com (Postfix) with ESMTP id 4CC8921E8050 for <json@ietf.org>; Thu, 6 Jun 2013 16:08:52 -0700 (PDT)
Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Lkmks-1UClSY4AAG-00aRZb for <json@ietf.org>; Fri, 07 Jun 2013 01:08:51 +0200
Received: (qmail invoked by alias); 06 Jun 2013 23:08:50 -0000
Received: from 84-115-182-43.dynamic.surfer.at (EHLO Vostro3500) [84.115.182.43] by mail.gmx.net (mp027) with SMTP; 07 Jun 2013 01:08:50 +0200
X-Authenticated: #419883
X-Provags-ID: V01U2FsdGVkX186M+18yYk6c51ccyL2Bj3NaieOXr8ToW+YoHWI0c YXi83416/U0F8M
From: Markus Lanthaler <markus.lanthaler@gmx.net>
To: json@ietf.org
References: <51AF8479.5080002@crockford.com> <CAK3OfOgtYoPRZ-Gj5G8AnNipDyxYs=6_KD=rQTxKbhDPX6FZNA@mail.gmail.com>
In-Reply-To: <CAK3OfOgtYoPRZ-Gj5G8AnNipDyxYs=6_KD=rQTxKbhDPX6FZNA@mail.gmail.com>
Date: Fri, 07 Jun 2013 01:08:45 +0200
Message-ID: <01ef01ce630a$cbdb4210$6391c630$@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: Ac5jBD3ou/vHtJKxT7aGqkfAzPtMwAABhTvg
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 23:08:58 -0000

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.


--
Markus Lanthaler
@markuslanthaler