Re: [Json] Proposed minimal change for duplicate names in objects

Bjoern Hoehrmann <derhoermi@gmx.net> Wed, 03 July 2013 17:27 UTC

Return-Path: <derhoermi@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 17B6C11E8200 for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 10:27:10 -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=[AWL=0.000, BAYES_00=-2.599]
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 ZL3wZIxqktDD for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 10:27:05 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by ietfa.amsl.com (Postfix) with ESMTP id 6AE4B11E8201 for <json@ietf.org>; Wed, 3 Jul 2013 10:26:59 -0700 (PDT)
Received: from mailout-de.gmx.net ([10.1.76.28]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LrpCq-1UEAhg2ZYs-013eND for <json@ietf.org>; Wed, 03 Jul 2013 19:26:58 +0200
Received: (qmail invoked by alias); 03 Jul 2013 17:26:57 -0000
Received: from p5B230246.dip0.t-ipconnect.de (EHLO netb.Speedport_W_700V) [91.35.2.70] by mail.gmx.net (mp028) with SMTP; 03 Jul 2013 19:26:57 +0200
X-Authenticated: #723575
X-Provags-ID: V01U2FsdGVkX1+1s7V19Hi1Sy/vTxIo4KkmJKsswq1MhI1LA7dqL7 smtZq1qLnT92h5
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: John Cowan <cowan@mercury.ccil.org>
Date: Wed, 03 Jul 2013 19:26:49 +0200
Message-ID: <7kn8t8lglsnvn06f6agrmjfkl8c6me656n@hive.bjoern.hoehrmann.de>
References: <B86E1D4B-1DC8-4AD6-B8B3-E989599E0537@vpnc.org> <CAK3OfOj3MNNhjwo2bMa5CgoqynzMRVvviBXC8szxt5D17Z7FDg@mail.gmail.com> <F7023266-CD2B-4D10-B462-6C0383FCD255@vpnc.org> <20130703161312.GB32044@mercury.ccil.org>
In-Reply-To: <20130703161312.GB32044@mercury.ccil.org>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Cc: Nico Williams <nico@cryptonector.com>, Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org WG" <json@ietf.org>
Subject: Re: [Json] Proposed minimal change for duplicate names in objects
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: Wed, 03 Jul 2013 17:27:10 -0000

* John Cowan wrote:
>It seems to me that a little practical work is in order.  Someone needs
>to try out the eight streaming parsers I mentioned, and any others that
>they know of, to find out which, if any, (a) report errors on input
>containing duplicate names or (b) report only the first value named by a
>duplicate name.  A parser that guarantees to return only the last value
>cannot, per definitionem, be a streaming parser.

http://www.ietf.org/mail-archive/web/json/current/msg00480.html has code
testing Microsoft's .NET Framework's System.Runtime.Serialization.Json.
It reports duplicate instances and does not report any errors for them.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/