Re: [Json] Questions regarding duplicate names

Tim Bray <tbray@textuality.com> Sat, 27 July 2013 21:19 UTC

Return-Path: <tbray@textuality.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 DEEC811E80FF for <json@ietfa.amsl.com>; Sat, 27 Jul 2013 14:19:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.143
X-Spam-Level:
X-Spam-Status: No, score=-2.143 tagged_above=-999 required=5 tests=[AWL=0.833, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 r9pLkr3xvd36 for <json@ietfa.amsl.com>; Sat, 27 Jul 2013 14:18:56 -0700 (PDT)
Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by ietfa.amsl.com (Postfix) with ESMTP id 7967A11E80F7 for <json@ietf.org>; Sat, 27 Jul 2013 14:18:52 -0700 (PDT)
Received: by mail-ve0-f173.google.com with SMTP id jw11so2100671veb.32 for <json@ietf.org>; Sat, 27 Jul 2013 14:18:51 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=/NsLxWXGyRiSBjadKGYsznoVfJc6M301PDdP9LI513M=; b=eJ1QfIPbOHSu5bsMaEO/deX9wiGCcg4xG0c1qrvr/tmnMMU50Le+qoRJDHGrj9cRRq 8hZ8vC2jbijXmidi4zVyo4ihOZloZ3+5mwta+TBFPzMZ7t7xeJRSYTrnVGKV2SMW2YLe uixZskFVD1TqPgfbiFENJi/OUy9qN3hvOiHV4vE4m9QWSEV/2BF7wcJxqu6wh0vZMB0R YsKA4f1TirEZsehmnD9cLwNqi1KcINtyV81VpoepVPUuldcrXuoUH2saTx5WW63QTtPu X1RR2gt6dkMiSPqTWK5883tcJfRDP5V03vZO/kZj01oisfoDmu89sEGR7yHY4vp+/Wtp RaFQ==
MIME-Version: 1.0
X-Received: by 10.58.2.137 with SMTP id 9mr23681038veu.50.1374959931707; Sat, 27 Jul 2013 14:18:51 -0700 (PDT)
Received: by 10.220.248.198 with HTTP; Sat, 27 Jul 2013 14:18:51 -0700 (PDT)
X-Originating-IP: [24.84.235.32]
In-Reply-To: <BF7E36B9C495A6468E8EC573603ED9411EE4ED06@xmb-aln-x11.cisco.com>
References: <51E4B6AE.4040502@qti.qualcomm.com> <BF7E36B9C495A6468E8EC573603ED9411EE4ED06@xmb-aln-x11.cisco.com>
Date: Sat, 27 Jul 2013 14:18:51 -0700
Message-ID: <CAHBU6is83S6TGuGXusGzmqsw9VsEVuqVei9PA3YyGjO_zSiR4Q@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
To: "Matt Miller (mamille2)" <mamille2@cisco.com>
Content-Type: multipart/alternative; boundary="047d7b2e75cc4f70b604e284ce0a"
X-Gm-Message-State: ALoCoQkk8QznMp1XOAPnbV+dSk/wmX6Y0yp1Jmckz6zOCbh1JvnuUQfEfz341BBu3xXoHuqImcKL
Cc: "json@ietf.org WG" <json@ietf.org>
Subject: Re: [Json] Questions regarding duplicate names
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: Sat, 27 Jul 2013 21:19:01 -0000

Agree with chairs’ outline of the rough consensus. -T


On Sat, Jul 27, 2013 at 1:22 PM, Matt Miller (mamille2)
<mamille2@cisco.com>wrote:

> Hello all,
>
> Here is an attempt to summarize responses to the duplicate names questions.
>
> The consensus from this thread seems to be that duplicate names within the
> same JSON object are not generally desirable.
>
> There appears to be rough consensus that a generator (for some definition
> of "generator") ought to take steps to avoid emitting duplicate names, but
> that there exists a non-trivial amount of software where the prohibition of
> duplicates cannot be completely enforced.
>
> There appears to be consensus that parsers (for some definition of
> "parser") need to be able to deal with duplicate names in some manner.
>  There is rough consensus that 4627bis ought to provide guidance on how
> parsers deal with duplicate names.  However, there is no one option that
> has any consensus; instead, there appears to be acquiescence that a given
> parser ought to support one option from a limited set of documented
> choices.  The most common suggestions -- which appear to reflect the
> majority of existing implementations -- far so:
>
> * report an error in some manner
> * report the last value that appears in the JSON text
> * report all the values that appear in the JSON text
>
>
> - Paul Hoffman and Matt Miller
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>
>