Re: [Json] Counterproposal #2 on work items

Robert Sayre <sayrer@gmail.com> Thu, 21 February 2013 01:29 UTC

Return-Path: <sayrer@gmail.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 0D02C21E8055 for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 17:29:53 -0800 (PST)
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 ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r+nhYa0Xnh15 for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 17:29:52 -0800 (PST)
Received: from mail-we0-x22f.google.com (we-in-x022f.1e100.net [IPv6:2a00:1450:400c:c03::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 4C1A021E8053 for <json@ietf.org>; Wed, 20 Feb 2013 17:29:52 -0800 (PST)
Received: by mail-we0-f175.google.com with SMTP id x8so7201676wey.6 for <json@ietf.org>; Wed, 20 Feb 2013 17:29:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=DHT5aRXUgD8aYs2CP0Aj74RxM6BqcW1ymrD+7NLFKnw=; b=pCV+H9cF3D6OuvsYHdj80/j6YFHZ+GgWwhDvopV/XdT+zvJ6J36uuT2ZqcZedBa9Of JhO0s6Bgcmt1aR/M9G2Ot/YB7n9OXEPSgvC65FknPkB8ECCFwQQxcn9yAsfhuiOwTH25 YXHDpiw/+jWNSrxXE21EUvYLzgrlKzZYbDUOUhxAD+i7nppw7CQHRsbfBC3hNE+v0NIH 56iZVdemxuHrXSya0JfuGlZ4XYDApz1+ja/qOAxGfOUdBclOi55d+svw6eGoC/V/xciH Eq5hRE9jctdvbNov4bEnOxuC6veu8Y42USstWi3mNFspWEk5VaNYhf1CjO9/aojJnw7C 1heQ==
MIME-Version: 1.0
X-Received: by 10.180.105.232 with SMTP id gp8mr37802866wib.33.1361410191202; Wed, 20 Feb 2013 17:29:51 -0800 (PST)
Received: by 10.194.138.170 with HTTP; Wed, 20 Feb 2013 17:29:51 -0800 (PST)
In-Reply-To: <CALcybBCJ=z6u=1CGURB4ECoOaOA1igDy0H64fRm5Sj1HWQcRCg@mail.gmail.com>
References: <CALcybBC87P7FT7n5d8xmXMxSFU1LBS9eJUsRX4hfYP5CUJr3QA@mail.gmail.com> <A723FC6ECC552A4D8C8249D9E07425A70F89B751@xmb-rcd-x10.cisco.com> <CALcybBBSL3w1-JRzUVWMmfS+jzytKNOv6omD1cR+_CLjze6WsA@mail.gmail.com> <12CE5BFB-49C5-48D0-96DF-F78F0D60578A@yahoo.com> <CALcybBCJ=z6u=1CGURB4ECoOaOA1igDy0H64fRm5Sj1HWQcRCg@mail.gmail.com>
Date: Wed, 20 Feb 2013 17:29:51 -0800
Message-ID: <CAChr6Sx6_=NWpLrKCvJjtvNmjUiMAfZS8pEErRFYzuHD17zNAA@mail.gmail.com>
From: Robert Sayre <sayrer@gmail.com>
To: Francis Galiegue <fgaliegue@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Vinny A <jsontest@yahoo.com>, Tim Bray <tbray@textuality.com>, "Joe Hildebrand \(jhildebr\)" <jhildebr@cisco.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Counterproposal #2 on work items
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, 21 Feb 2013 01:29:53 -0000

On Wed, Feb 20, 2013 at 5:20 PM, Francis Galiegue <fgaliegue@gmail.com> wrote:
>
> And some existing I-Ds, such as JSON Patch, as a result, have felt
> compelled to say that a JSON Patch operation, for instance, must have
> one and only one member named "op". Which imposes constraints on
> _parsing_ that RFC 4627 does not...

I can't think of a reason not to specify what ES5 does here (always
use the last one). This is a perfectly reliable way to write into a
hash table during decoding. And while you can't depend on a single
hash table's iteration order during encoding, you can count on unique
keys, so the appearance of duplicate keys in a JSON dictionary implies
a sequence of sets.

- Rob