Re: [Json] fun with streaming, was The names within an object SHOULD be unique.

"John R Levine" <johnl@taugh.com> Tue, 30 July 2013 21:10 UTC

Return-Path: <johnl@taugh.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 3C56611E81FD for <json@ietfa.amsl.com>; Tue, 30 Jul 2013 14:10:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 7Zmsx3pmBl+8 for <json@ietfa.amsl.com>; Tue, 30 Jul 2013 14:10:42 -0700 (PDT)
Received: from leila.iecc.com (leila6.iecc.com [IPv6:2001:470:1f07:1126:0:4c:6569:6c61]) by ietfa.amsl.com (Postfix) with ESMTP id 37D7411E81E3 for <json@ietf.org>; Tue, 30 Jul 2013 14:10:41 -0700 (PDT)
Received: (qmail 70303 invoked from network); 30 Jul 2013 21:10:40 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:user-agent:cleverness; s=1129e.51f82bd0.k1307; bh=ejTGaQHKazDNAoJDjf7D5xdtP5YPPWQGU2pyddQo7Qo=; b=qZAtJeMI5bQZiEUuqzIvb62vojRsu4YzcbpddTe8dlty72rqDSFNP6MvKEGEpWAAxjlAGn52Z3Q/W8zN+DMW79BxqjnoAJ2/HoSsPQigtgT0gVP7g+H0DGX5iPxMqrGc0YgeppOkkvalyLojHl1vZNnKUoJZqeZuVCKio4sKPpAcsfQ43AzjNAfcUQZE1jbirdYedy1S5JedbJ0bNV0vnBla/zc/q3pJgxZ3LajiHrvNfo0z2RN5sOMyxxIU51M9
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:user-agent:cleverness; s=1129e.51f82bd0.k1307; bh=ejTGaQHKazDNAoJDjf7D5xdtP5YPPWQGU2pyddQo7Qo=; b=iqrh4/BG07Qv3xiH3LwFZ//IWajPICxWm+DyRXGlzIexMzSyWARBLIqdgPc32JamOW/+lTwHuSL5n+USMzQeBj4k2cMPYARhUmWvTy7Z73cZavKKQvHgiyl0rOaQXkYCASPM+JPU1ndrNiFq5V0OHsbFILjgaBma7Fh942qVRJWC3l2RUOz2aR6EocywnjqCfeEcdkGX4jZYERqBhmkJhNz7fI0HfZBye+40tlUq0pCwNWs+F2DmxGc8BN9qOwxD
Received: (ofmipd 127.0.0.1); 30 Jul 2013 21:10:18 -0000
Date: Tue, 30 Jul 2013 23:10:40 +0200
Message-ID: <alpine.BSF.2.00.1307302309010.2312@joyce.lan>
From: John R Levine <johnl@taugh.com>
To: Nico Williams <nico@cryptonector.com>
In-Reply-To: <CAK3OfOgsx+8Q83WRv9ZWFkD3LwP4bQGF7zqP=z6uOnqP+2L2LQ@mail.gmail.com>
References: <20130730142623.GB17809@mercury.ccil.org> <20130730160719.3203.qmail@joyce.lan> <CAHBU6it7vJZ7XXj2yy=VBLXVXAueNVf0EZb+CR9rCKn+hTLdcw@mail.gmail.com> <CAK3OfOgsx+8Q83WRv9ZWFkD3LwP4bQGF7zqP=z6uOnqP+2L2LQ@mail.gmail.com>
User-Agent: Alpine 2.00 (BSF 1167 2008-08-23)
Cleverness: None detected
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] fun with streaming, was 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: Tue, 30 Jul 2013 21:10:43 -0000

>> Has anyone any personal knowledge of an app whose correct function depends
>> on the use of duplicate keys?  -T
>
> On was linked earlier, one whose docs explicitly said "JSON supports
> this, so we use it".  I don't mind breaking them.  What I do mind is
> language that leaves streaming implementations in the cold.

Seems like we're talking past each other again.

We all agree that duplicate keys suck, but since they have been observed 
in the wild, we ask a parser to document what it does with them, from the 
list of options mentioned before.  I think that's both all we can ask, and 
it's plenty.

Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
"I dropped the toothpaste", said Tom, crestfallenly.