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

R S <sayrer@gmail.com> Fri, 07 June 2013 02:59 UTC

Return-Path: <sayrer@gmail.com>
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 AF8E611E80C5 for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 19:59:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 7X0PlpqmvhbA for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 19:59:39 -0700 (PDT)
Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) by ietfa.amsl.com (Postfix) with ESMTP id 1D64111E80A4 for <json@ietf.org>; Thu, 6 Jun 2013 19:59:39 -0700 (PDT)
Received: by mail-qa0-f44.google.com with SMTP id j8so781009qah.3 for <json@ietf.org>; Thu, 06 Jun 2013 19:59:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yCcUT7mWQQIyFqVnOuzyLZplaUGRDUtZdPPAy96HFwc=; b=xcNTia23lT4qoB+PJRoPrJ6Lrp1goe/htof0qlAnlcZebUD1qMYLKcxBPgYogql825 pAofjYqgRSGeZs1cpJ1oUVJLRK2McTy+cke2DB4dQvYT1g1w0WOtvk5h49Xb8NCI9YLn EBoaX2GQWWSd8HjwTodnsX9o7Mi4RIxs0e5FsEdJ9qesnNVwaapCR+sZMK9FLdlqEt5Y lPjB1tTAc+mn0s/Nbjlu6VUxW+4iwBbHeAuay0j5FFqIOal/64eCntCeUjUJB1PWqqY8 TqZUkg/mxRj6i95r6f4kGJp3CIoNPN7bE2TyfkZgaSoSNhwlXGsHM4f0OE1urMso65Ec KqxA==
MIME-Version: 1.0
X-Received: by 10.224.189.194 with SMTP id df2mr536568qab.97.1370573978590; Thu, 06 Jun 2013 19:59:38 -0700 (PDT)
Received: by 10.224.178.1 with HTTP; Thu, 6 Jun 2013 19:59:38 -0700 (PDT)
In-Reply-To: <CAK3OfOhL3zXHfg9EEDWLXhjLQ1aBvvxikKAiR+nUpDHJaVh+Qg@mail.gmail.com>
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>
Date: Thu, 06 Jun 2013 19:59:38 -0700
Message-ID: <CAChr6SxDaa981O3w2hixE4RFpJhUQB6TZ12j7sCOQ3HvpQvMPA@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: multipart/alternative; boundary="20cf300fb40121e54304de879f07"
Cc: Markus Lanthaler <markus.lanthaler@gmx.net>, "json@ietf.org" <json@ietf.org>
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 02:59:39 -0000

JSON is sometimes produced by naive string concatenation, which will
probably never change. It is consumed by browsers, which will probably
never change their duplicate key handling.

The text from RFC 4627 should stay unchanged. The suggestions for
requirements on encoders are prescriptive and therefore inaccurate at this
stage in JSON's adoption.

- Rob



On Thu, Jun 6, 2013 at 5:13 PM, Nico Williams <nico@cryptonector.com> 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".
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>
>