Re: [Json] Questions regarding duplicate names
Stefan Drees <stefan@drees.name> Mon, 29 July 2013 05:24 UTC
Return-Path: <stefan@drees.name>
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 E981F21F9F34 for <json@ietfa.amsl.com>; Sun, 28 Jul 2013 22:24:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.63
X-Spam-Level:
X-Spam-Status: No, score=-1.63 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_SORBS_WEB=0.619]
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 ji7jGTno6Tuq for <json@ietfa.amsl.com>; Sun, 28 Jul 2013 22:24:26 -0700 (PDT)
Received: from mout.web.de (mout.web.de [212.227.15.3]) by ietfa.amsl.com (Postfix) with ESMTP id 95B3B21F9E2A for <json@ietf.org>; Sun, 28 Jul 2013 22:24:25 -0700 (PDT)
Received: from newyork.local.box ([93.129.89.49]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0LoLKj-1URq9r2IxN-00gJeU for <json@ietf.org>; Mon, 29 Jul 2013 07:24:18 +0200
Message-ID: <51F5FC81.7050501@drees.name>
Date: Mon, 29 Jul 2013 07:24:17 +0200
From: Stefan Drees <stefan@drees.name>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: "Matt Miller (mamille2)" <mamille2@cisco.com>
References: <51E4B6AE.4040502@qti.qualcomm.com> <BF7E36B9C495A6468E8EC573603ED9411EE4ED06@xmb-aln-x11.cisco.com>
In-Reply-To: <BF7E36B9C495A6468E8EC573603ED9411EE4ED06@xmb-aln-x11.cisco.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:toFcVlwvyxAOTG5HeaubCugt+VtSdxciZsYkFk/AWn9ttOnk0bZ 4XQRx0OCSSofGkCar001WnmcZEDIMU92wXAGKZjaKAGlsNqEqVIR0OoDmxb6eI5Ml1hA5cG QZOU+M96B9ohfqkCjiehc7UuVgQBrLz/viDYcu3OKJLPek3guZoIqKPOE26SMKvLLYkrk5w fz9ArWjd2Zy0BF8sQK5Jw==
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
Reply-To: stefan@drees.name
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: Mon, 29 Jul 2013 05:24:32 -0000
On 2013-07-27 22:22 +02:00, Matt Miller (mamille2) wrote (on the behalf of Paul Hoffman and Matt Miller): > 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 Works for me. Thanks for summarizing, Stefan. > ...
- Re: [Json] Questions regarding duplicate names Nico Williams
- Re: [Json] Questions regarding duplicate names Pete Resnick
- [Json] Questions regarding duplicate names Pete Resnick
- Re: [Json] Questions regarding duplicate names Tatu Saloranta
- Re: [Json] Questions regarding duplicate names Nico Williams
- Re: [Json] Questions regarding duplicate names Bjoern Hoehrmann
- Re: [Json] Questions regarding duplicate names Tim Bray
- Re: [Json] Questions regarding duplicate names Nico Williams
- Re: [Json] Questions regarding duplicate names Joe Hildebrand (jhildebr)
- Re: [Json] Questions regarding duplicate names Joe Hildebrand (jhildebr)
- Re: [Json] Questions regarding duplicate names Joe Hildebrand (jhildebr)
- Re: [Json] Questions regarding duplicate names John Levine
- Re: [Json] Questions regarding duplicate names John Cowan
- Re: [Json] Questions regarding duplicate names Matt Miller (mamille2)
- Re: [Json] Questions regarding duplicate names Tim Bray
- Re: [Json] Questions regarding duplicate names Martin J. Dürst
- Re: [Json] Questions regarding duplicate names Jorge Chamorro
- Re: [Json] Questions regarding duplicate names Jorge Chamorro
- Re: [Json] Questions regarding duplicate names Joe Hildebrand (jhildebr)
- Re: [Json] Questions regarding duplicate names Stefan Drees
- Re: [Json] Questions regarding duplicate names John Levine