Re: [Json] Proposed minimal change for strings

Stephen Dolan <stephen.dolan@cl.cam.ac.uk> Fri, 05 July 2013 15:50 UTC

Return-Path: <stedolan@stedolan.net>
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 BB9D311E8302 for <json@ietfa.amsl.com>; Fri, 5 Jul 2013 08:50:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level:
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 lU86Vrdg7706 for <json@ietfa.amsl.com>; Fri, 5 Jul 2013 08:50:34 -0700 (PDT)
Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by ietfa.amsl.com (Postfix) with ESMTP id D54AE21F9BDB for <json@ietf.org>; Fri, 5 Jul 2013 08:50:33 -0700 (PDT)
Received: by mail-la0-f54.google.com with SMTP id ec20so2152307lab.41 for <json@ietf.org>; Fri, 05 Jul 2013 08:50:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=jkQa0MqwN6eB7+IG9PW1xfQZ0hVRfJhqzuNixSct1qI=; b=L1PjkrqFvoYZl+auvCZO7JbdwCdGQfxVeKps6z6ckyCKK7yuOzfOy5iC1YSruRqmIZ lzXUUc81VCY4pTg2LhRMa2U1s7C/cHajKHLJoamZd8Z1ac5oeOjV9HLeEm2jiTYVSFv9 qYVdHCd0XN5CXsFN27lQhnBb6G2uGlrMKXg5J92sjizlPZC1GrXeQF9wSD3vmcmGmVGd TOtqnaCpWCIMLGmEmXn9KIgAIS6C7yChEbHTLXbKj9m7H57oMf7DkCGN1glElvdpriUQ Gcq2+ETHXzToptqpn/btC2O2EBjkzXKtvc+WsO7/ozlVKBMgkuPefxm7JHQ0/0xHeVUO 5S/Q==
MIME-Version: 1.0
X-Received: by 10.112.159.169 with SMTP id xd9mr5816511lbb.43.1373039432576; Fri, 05 Jul 2013 08:50:32 -0700 (PDT)
Sender: stedolan@stedolan.net
Received: by 10.114.200.198 with HTTP; Fri, 5 Jul 2013 08:50:32 -0700 (PDT)
X-Originating-IP: [128.232.9.157]
In-Reply-To: <AD49900E-7DC6-42B1-AFE1-B7909785585F@jorgechamorro.com>
References: <A723FC6ECC552A4D8C8249D9E07425A70FC7E0AD@xmb-rcd-x10.cisco.com> <AD49900E-7DC6-42B1-AFE1-B7909785585F@jorgechamorro.com>
Date: Fri, 05 Jul 2013 16:50:32 +0100
X-Google-Sender-Auth: Vb3cwJ8K7NWVOu6MDCGvWOq5E0I
Message-ID: <CA+mHimNZYuyFVendgBnKgzjzBpkez+g5UW=qJ8kgy5dOyBAuww@mail.gmail.com>
From: Stephen Dolan <stephen.dolan@cl.cam.ac.uk>
To: Jorge <jorge@jorgechamorro.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQnHmFukDL2zIHPy3/GgOwJRFbVqNq3BKmVTjnIJ+0czNmgbqCJgKojIItaQ2s+E6XOojV4P
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, Joe Hildebrand <jhildebr@cisco.com>, "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: Fri, 05 Jul 2013 15:50:44 -0000

On Fri, Jul 5, 2013 at 11:01 AM, Jorge <jorge@jorgechamorro.com> wrote:
> But, don't the JavaScripts in ˜ every browser in the world permit it?

They also permit numbers to be NaN or Inf, objects to contain keys
which are not strings, array syntax to include a trailing comma, and
so on. "Javascript permits it" does not imply that JSON does or
should.

Regarding the proposals: +1 for proposal 2, and very much -1 for
proposal 1 (both because I disagree that unpaired surrogates should be
part of JSON, and because it is badly worded, using the term "code
unit" in strange ways).

Stephen