Re: [Json] Proposed minimal change for strings

John Cowan <cowan@mercury.ccil.org> Wed, 03 July 2013 04:41 UTC

Return-Path: <cowan@ccil.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 6086E11E8166 for <json@ietfa.amsl.com>; Tue, 2 Jul 2013 21:41:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 lh7fLcR6VPwY for <json@ietfa.amsl.com>; Tue, 2 Jul 2013 21:41:53 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) by ietfa.amsl.com (Postfix) with ESMTP id 1203411E80A5 for <json@ietf.org>; Tue, 2 Jul 2013 21:41:52 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1UuEt4-0004aR-Ar; Wed, 03 Jul 2013 00:41:50 -0400
Date: Wed, 03 Jul 2013 00:41:50 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Message-ID: <20130703044150.GW31347@mercury.ccil.org>
References: <9BACB3F2-F9BF-40C7-B4BA-C0C2F33E4278@vpnc.org> <20130703012614.GL31347@mercury.ccil.org> <2CD8DA4E-8E03-4B4A-AC99-166B7094DCF9@vpnc.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <2CD8DA4E-8E03-4B4A-AC99-166B7094DCF9@vpnc.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Cc: "json@ietf.org WG" <json@ietf.org>
Subject: Re: [Json] Proposed minimal change for strings
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, 03 Jul 2013 04:41:57 -0000

Paul Hoffman scripsit:

> It does not appear that the Unicode Standard requires mentioning its
> size, at least in the definition of "code unit" in D77.

That is so.  But are we to understand, then, that a JSON string is a
sequence of code units of some unspecified size?  For example,
is the 8-bit code unit sequence <FF, FE, FF, FE> a JSON string?
How about the 32-bit code unit sequence <ABCDABCD, 10101010>?
Might 3-bit or 17-bit or 99-bit code unit sequences be allowed also?
Surely not.

> John is correct. After further review, we should have worded the above
> as "...cannot be encoded in any Unicode encoding form".

As noted, that should have been "unpaired unescaped surrogate code units".

-- 
John Cowan  cowan@ccil.org  http://ccil.org/~cowan
If I have seen farther than others, it is because I was standing on
the shoulders of giants.
        --Isaac Newton