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

Stefan Drees <stefan@drees.name> Wed, 03 July 2013 08:09 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 518BB21F9C75 for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 01:09:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level:
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
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 bw8HGqp8T5US for <json@ietfa.amsl.com>; Wed, 3 Jul 2013 01:09:48 -0700 (PDT)
Received: from mout.web.de (mout.web.de [212.227.17.11]) by ietfa.amsl.com (Postfix) with ESMTP id 430B321F942B for <json@ietf.org>; Wed, 3 Jul 2013 01:09:47 -0700 (PDT)
Received: from newyork.local.box ([93.197.219.73]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MMn1H-1UsL8905jb-008c6i; Wed, 03 Jul 2013 10:09:38 +0200
Message-ID: <51D3DC41.4020808@drees.name>
Date: Wed, 03 Jul 2013 10:09:37 +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: Nico Williams <nico@cryptonector.com>
References: <B86E1D4B-1DC8-4AD6-B8B3-E989599E0537@vpnc.org> <CAK3OfOj3MNNhjwo2bMa5CgoqynzMRVvviBXC8szxt5D17Z7FDg@mail.gmail.com> <51D3C63C.5030703@cisco.com> <CAK3OfOg5ErNO5zozaCB-qchSaUb-dy4Da5b1KKJNTM0Bnpm+1A@mail.gmail.com>
In-Reply-To: <CAK3OfOg5ErNO5zozaCB-qchSaUb-dy4Da5b1KKJNTM0Bnpm+1A@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:skwXIYyf9hCYAxWITuwvNBKNKTcD2bQmTLpcC0EpsWdlYL+rziv iGh+92L9wSGkCvPhhEOAeVldWPE5/K/wn3XQSmTB9WhL3MKNSZMtpdzhPsGbJssdf+n4IEt zaUE5to3MF+knkwTTahrQFDlEU9AUoX77yyTDWGngUqzNoUwt8/rh0RIWm9swduWw12XfAq 0r5daW7/NiesZZeEcyiiQ==
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, Eliot Lear <lear@cisco.com>, "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
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: Wed, 03 Jul 2013 08:09:54 -0000

On 2013-07-03 08:45 +02:00, Nico Williams wrote:
> On Wed, Jul 3, 2013 at 1:35 AM, Eliot Lear <lear@cisco.com> wrote:
>>> ...

> BTW, we're retreading.  We should try not to, but it's difficult to
> avoid as no one can have read *every* post since the WG's inception.
> I think it's fair to say that on this issue there's no consensus to
> ban the bad behavior (duplicate names). ...

JSON in the role of data interchange format allows at that point the 
multiset use case. Bad behaviour IMO is when misusing this.

The expectation, that the unordered list of names in a single object 
must form a set and not a multiset is questionable.

Just because everyone and her dog "blindly" feeds this into a keyed map 
structure does not mean, the format is to blame I think :-)

{"Stefan":"male","Stefan":"native German","could not resist":true}