Re: [Json] Proposal: the minimal edit

Paul Hoffman <paul.hoffman@vpnc.org> Tue, 25 June 2013 03:31 UTC

Return-Path: <paul.hoffman@vpnc.org>
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 9E2B021F9121 for <json@ietfa.amsl.com>; Mon, 24 Jun 2013 20:31:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.519
X-Spam-Level:
X-Spam-Status: No, score=-102.519 tagged_above=-999 required=5 tests=[AWL=0.080, BAYES_00=-2.599, 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 SdfbjAvkHb7k for <json@ietfa.amsl.com>; Mon, 24 Jun 2013 20:31:52 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id 15AEB21F9079 for <json@ietf.org>; Mon, 24 Jun 2013 20:31:52 -0700 (PDT)
Received: from [10.20.30.90] (50-0-66-165.dsl.dynamic.sonic.net [50.0.66.165]) (authenticated bits=0) by hoffman.proper.com (8.14.5/8.14.5) with ESMTP id r5P3Vn1B098955 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 24 Jun 2013 20:31:49 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <20130625032014.GF14060@mercury.ccil.org>
Date: Mon, 24 Jun 2013 20:31:48 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <ECAD5568-05F1-44C0-A8E1-6A38DAFAF6D4@vpnc.org>
References: <20130625032014.GF14060@mercury.ccil.org>
To: John Cowan <cowan@mercury.ccil.org>
X-Mailer: Apple Mail (2.1508)
Cc: 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: Tue, 25 Jun 2013 03:31:52 -0000

On Jun 24, 2013, at 8:20 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> Paul Hoffman scripsit:
> 
>> Add Section 1.2, "Changes from RFC 4627"
>> 
>>   This section lists all changes between this document and the text in
>>   RFC 4627.
>> 
>>   - Applied errata #607 from RFC 4627 to correctly align the artwork
>>     for the definition of "object".
>> 
>>   - Applied errata #3607 from RFC 4627 by removing the security
>>     consideration that begins "A JSON text can be safely passed"
>>     and the JavaScript code that went with that consideration.
>> 
>>   - Added Section 1.3, "Differences from the JSON Definition in ECMAScript". 
>> 
>>   - Changed the [ECMA] and [UNICODE] references to be non-version-specific.
> 
> Given these changes, and *only* these changes, then I do not believe that
> 
>>   - ECMAScript implementations can generate and consume code points
>>     in JSON strings that are not Unicode characters.
> 
> belongs in Section 1.3, for it is equally true of ECMA-JSON and RFC 4627
> JSON.  Both of them allow code points that are not Unicode characters,
> e.g. unassigned codepoints.  So this point is true but not relevant.

Hrm. Either you are focused only on the grammar section and not the whole document, or you missed the Introduction to RFC 4627, which say unequivocally:

   A string is a sequence of zero or more Unicode characters [UNICODE].

That statement disagrees with ABNF in the grammar, so the RFC is ambiguous. Some people in the WG believe that this sentence is right and the ABNF is wrong; others believe the other.

Does that help make the sentence about the differences more believable?

--Paul Hoffman