Re: [Json] What does "break compatibility" mean?

Nico Williams <nico@cryptonector.com> Thu, 28 February 2013 20:47 UTC

Return-Path: <nico@cryptonector.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 A0C5D21F8A55 for <json@ietfa.amsl.com>; Thu, 28 Feb 2013 12:47:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.33
X-Spam-Level:
X-Spam-Status: No, score=-3.33 tagged_above=-999 required=5 tests=[AWL=-1.353, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GQrolkSKSpuV for <json@ietfa.amsl.com>; Thu, 28 Feb 2013 12:47:23 -0800 (PST)
Received: from homiemail-a66.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by ietfa.amsl.com (Postfix) with ESMTP id A116C21F858A for <json@ietf.org>; Thu, 28 Feb 2013 12:46:56 -0800 (PST)
Received: from homiemail-a66.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTP id 2C52D350079 for <json@ietf.org>; Thu, 28 Feb 2013 12:46:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type:content-transfer-encoding; s= cryptonector.com; bh=xtHnSHeYrcf5zhhf6DdMlxSOOrQ=; b=MLcAB1FtQrG PD0a7dznsw2nhn2aDytDJ9V8mdTtmFe8vuta7dxZ4DsLQ0wAjxOaL3H8Fg0b09NV VuVL2iC7Rzt0jiMAcZUjiSP0EkwouYM6qB3wr9/NYKC167pwE+8OyjMa4AfkLs1t ZPypjhAbqtKwZUpcERNTOnuuvA43k3C4=
Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTPSA id BAB8A350072 for <json@ietf.org>; Thu, 28 Feb 2013 12:46:55 -0800 (PST)
Received: by mail-wi0-f178.google.com with SMTP id hq4so2662536wib.11 for <json@ietf.org>; Thu, 28 Feb 2013 12:46:54 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.60.195 with SMTP id j3mr13468310wjr.33.1362084414321; Thu, 28 Feb 2013 12:46:54 -0800 (PST)
Received: by 10.216.148.193 with HTTP; Thu, 28 Feb 2013 12:46:54 -0800 (PST)
In-Reply-To: <CAHBU6ivXpRaTPsbLd90zBDdiypO2pYn9mckkNcCh9ZEApsK1yg@mail.gmail.com>
References: <CAHBU6ityBeA+M-PEme09gO_jVySr33-X308i1UttxrQwSgYmGQ@mail.gmail.com> <0F513426-F26D-48F4-A7A8-88F3D3DA881B@vpnc.org> <CAK3OfOjFCnR8k1csVOkSKTDpA8exDvYdAijn80HKD5zwNzzeSw@mail.gmail.com> <4514F5D7-4A7E-476F-987D-C4C617F2BCBD@vpnc.org> <4D80AE86-4DBA-4236-9E2A-A06F2F9C30F7@mnot.net> <00b001ce1509$c4c99fc0$4e5cdf40$@packetizer.com> <CAC4RtVDXwPRL-Cz_Xf-kjU3dzzY+JheDGivSE9hF2v1NLkWEgQ@mail.gmail.com> <63519CDF-144F-4DA4-A9F3-A1AB824861D2@vpnc.org> <CAHBU6ivXpRaTPsbLd90zBDdiypO2pYn9mckkNcCh9ZEApsK1yg@mail.gmail.com>
Date: Thu, 28 Feb 2013 14:46:54 -0600
Message-ID: <CAK3OfOhX0aAhX6rsK5mL+5AUvX1bepgeN9o3OReRGykg8ycWhA@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Tim Bray <tbray@textuality.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: Barry Leiba <barryleiba@computer.org>, Paul Hoffman <paul.hoffman@vpnc.org>, json@ietf.org
Subject: Re: [Json] What does "break compatibility" mean?
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion related to JavaScript Object Notation \(JSON\)." <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: Thu, 28 Feb 2013 20:47:23 -0000

On Thu, Feb 28, 2013 at 2:06 PM, Tim Bray <tbray@textuality.com> wrote:
> It’s clear to me that, *for the purposes of the IETF*, someone needs to say
> “People sending JSON MUST NOT use duplicate keys.”  The fact that certain
> libraries allow less-clueful developers to do this, and that parsing
> software is observed to behave unpredictably when they do, should only
> encourage us.

The obvious compromise is to say senders MUST NOT send dup object keys
and receivers MUST take the last key value pair of any dup keys,
per-ECMAScript.  The latter preserves compatibility.

Nico
--