Re: [Json] Proposal: the minimal edit

R S <sayrer@gmail.com> Sat, 22 June 2013 20:42 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 8B4BB21F9E2A for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 13:42:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.53
X-Spam-Level:
X-Spam-Status: No, score=-2.53 tagged_above=-999 required=5 tests=[AWL=0.069, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 rwkTLgUS+uvZ for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 13:42:34 -0700 (PDT)
Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by ietfa.amsl.com (Postfix) with ESMTP id 6F43521F9C32 for <json@ietf.org>; Sat, 22 Jun 2013 13:42:34 -0700 (PDT)
Received: by mail-wi0-f174.google.com with SMTP id k10so1548367wiv.13 for <json@ietf.org>; Sat, 22 Jun 2013 13:42:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rVgXkFQ3UgMuICihDXas6i+LtajbAWBKeWW6kYulfD4=; b=YMdnQc6KBfX4vh8gHEc+ouH3Okkx6Kok44UBGjJVmg8HcuIMsIaASma+mkpcf3JsK/ k6t5kQ805qpLEAPmSMGo6HOfABoKJPImcq9UCzNW8hPnqTZ9YpjzZr+U3QYjwPlc0bMI WuhvpxEimXBlsPvQBfWhzaTbTCp02vC/LBbOjzT8t8Dt2NlabQLbTbGAvGhPe5VWoXz3 vv3kP+jRpKx6esNjbxYzdA404pWBZaQTvaB8dzoguX+a0we2TUKAUGhU8MORIB9sFUe5 A9nRz1zkWNffbRITdupELKpkBbbvCAvOG8qzKroSwpZ4/cEo8lqCq/2oB8W7FshqR3+p Mc9w==
MIME-Version: 1.0
X-Received: by 10.194.63.229 with SMTP id j5mr12613257wjs.79.1371933753617; Sat, 22 Jun 2013 13:42:33 -0700 (PDT)
Received: by 10.194.44.138 with HTTP; Sat, 22 Jun 2013 13:42:33 -0700 (PDT)
In-Reply-To: <CAChr6SyQDjik_BTojXdw3G7_B=W5iZXksuM15VYwGJqr8WHdhw@mail.gmail.com>
References: <CAChr6SyN4Z3Hh8OFGHkK+AJN0+S09wMfjeobZ51GjKNL+GhPsw@mail.gmail.com> <CAHBU6ivhoUM9cfUnc1YfnyDdQnWQ=Mj10cSoYn0qouMQ0F94XA@mail.gmail.com> <CAChr6SyQDjik_BTojXdw3G7_B=W5iZXksuM15VYwGJqr8WHdhw@mail.gmail.com>
Date: Sat, 22 Jun 2013 13:42:33 -0700
Message-ID: <CAChr6SwbFfR5UQuU2ceJhDeGAhv5Zy0dKA3szzO_KGfjA7fx5Q@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: Tim Bray <tbray@textuality.com>
Content-Type: multipart/alternative; boundary="047d7ba975180a343b04dfc43833"
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposal: the minimal edit
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: Sat, 22 Jun 2013 20:42:35 -0000

Incorporating updates from Paul and Tim:

I propose a new section, to appear after "Generators" and before "IANA
Considerations"

+ N. Differences from ECMAScript
+
+ ECMAScript implementations produce and consume primitive JSON values at
the
+ root level of JSON documents.
+
+ ECMAScript implementations generate and consume unpaired Unicode
surrogate code points in JSON documents.
+
+ When there are duplicate names within an object, ECMAScript parsers
overwrite the value corresponding to
+ such names with the value that appears last in the serialization.

Maybe this proposal should also deal with the errata for RFC 4627, since
they are said to be easy. That proposal would produce a document for -03 or
-04 that meets the requirements of the charter, and further proposals could
be evaluated with cost/benefit analysis in mind.

- Rob



On Sat, Jun 22, 2013 at 11:17 AM, R S <sayrer@gmail.com> wrote:

> On Sat, Jun 22, 2013 at 10:31 AM, Tim Bray <tbray@textuality.com> wrote:
>
>> If we’re doing an ECMAdiff section... Since 4627 says “A string is a
>> sequence of zero or more Unicode characters [UNICODE]” by definition this
>> cannot include unpaired surrogates, since they’re not .
>>
>> So in Rob’s proposed section:
>>
>> ECMAScript implementations generate and consume unpaired Unicode
>> surrogate code points in JSON documents.
>>
>
> Yeah, that's fair. I'm not opposed to any text in that section that
> reflects reality and refrains from editorializing.
>
> It might be good to focus the WG on producing a document that can be said
> to meet the requirements in the charter, and postpone changes that aren't
> necessary for that. I think documenting these ECMAScript irritants is the
> only thing we're absolutely required to do.
>
> - Rob
>