Re: [Json] The names within an object SHOULD be unique.

Eliot Lear <lear@cisco.com> Wed, 05 June 2013 20:08 UTC

Return-Path: <lear@cisco.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 2F02421F9AB8 for <json@ietfa.amsl.com>; Wed, 5 Jun 2013 13:08:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.599
X-Spam-Level:
X-Spam-Status: No, score=-110.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
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 QNIzk3kyyFnS for <json@ietfa.amsl.com>; Wed, 5 Jun 2013 13:08:53 -0700 (PDT)
Received: from ams-iport-4.cisco.com (ams-iport-4.cisco.com [144.254.224.147]) by ietfa.amsl.com (Postfix) with ESMTP id 797C921F9A19 for <json@ietf.org>; Wed, 5 Jun 2013 13:08:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=801; q=dns/txt; s=iport; t=1370462933; x=1371672533; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=YA2CC8YyaOWruCzffM8dMbGwFp3KOXdElvVZc6xI1XA=; b=XceWyC7wdqw22dZTzE/6ZS6EiQ++8dEBqXvuiznvnbUB40tPg1kKMc5z WI0TaRM2iQ0tjj03C16CiDX0msGPT+iiIeXHWIw8iblTZiGCaDb0W2xon x/jF880uLEl+AfGyq96OtmWiGxTANv7o0qQrKbzuu7USIlXF/+kS2gjPw k=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhsFAP2Zr1GQ/khN/2dsb2JhbABagwmDbLwDfxZ0giMBAQEEI1UBEAsYAgIFFgsCAgkDAgECAUUGDQEHAQGICawTkT+BJo4FB4JHgRQDlz+RQIMROg
X-IronPort-AV: E=Sophos;i="4.87,809,1363132800"; d="scan'208";a="14490669"
Received: from ams-core-4.cisco.com ([144.254.72.77]) by ams-iport-4.cisco.com with ESMTP; 05 Jun 2013 20:08:52 +0000
Received: from dhcp-10-61-109-56.cisco.com (dhcp-10-61-109-56.cisco.com [10.61.109.56]) by ams-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id r55K8m9o003971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Jun 2013 20:08:50 GMT
Message-ID: <51AF9ACF.5020507@cisco.com>
Date: Wed, 05 Jun 2013 22:08:47 +0200
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: Douglas Crockford <douglas@crockford.com>
References: <51AF8479.5080002@crockford.com>
In-Reply-To: <51AF8479.5080002@crockford.com>
X-Enigmail-Version: 1.5.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] 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: Wed, 05 Jun 2013 20:08:59 -0000

Hi,

On 6/5/13 8:33 PM, Douglas Crockford wrote:
> This was the biggest blunder in the RFC. SHOULD should have been MUST.
>
> It is, sadly, too late to repair this. Instead, we must specify what
> happens when you do the thing you SHOULD NOT do. We need to provide
> implementations some slack here because some implementations do the
> right thing and reject. Some implementations do the lazy thing and
> take that last use of the name.

Demonstrating my age, an old trick we've done that goes back to RFC-1123
is to say MUST NOT send, and then implementations MAY NOT process, and
if they do MUST process thusly...

That gives you the possibility of potentially getting rid of something
at a later date.  I don't know if you want to use it here.  It only
sometimes works.

Eliot