Re: [Json] Proposal: the minimal edit

John Cowan <cowan@mercury.ccil.org> Sat, 22 June 2013 20:59 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 56E0D21F9F1B for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 13:59:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.454
X-Spam-Level:
X-Spam-Status: No, score=-3.454 tagged_above=-999 required=5 tests=[AWL=0.145, 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 pEuwOnadxQHP for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 13:59:38 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) by ietfa.amsl.com (Postfix) with ESMTP id 0798221F9EC0 for <json@ietf.org>; Sat, 22 Jun 2013 13:59:38 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1UqUuG-0003Qs-OF; Sat, 22 Jun 2013 16:59:36 -0400
Date: Sat, 22 Jun 2013 16:59:36 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: R S <sayrer@gmail.com>
Message-ID: <20130622205936.GV31186@mercury.ccil.org>
References: <CAChr6SyN4Z3Hh8OFGHkK+AJN0+S09wMfjeobZ51GjKNL+GhPsw@mail.gmail.com> <CAHBU6ivhoUM9cfUnc1YfnyDdQnWQ=Mj10cSoYn0qouMQ0F94XA@mail.gmail.com> <CAChr6SyQDjik_BTojXdw3G7_B=W5iZXksuM15VYwGJqr8WHdhw@mail.gmail.com> <CAChr6SwbFfR5UQuU2ceJhDeGAhv5Zy0dKA3szzO_KGfjA7fx5Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAChr6SwbFfR5UQuU2ceJhDeGAhv5Zy0dKA3szzO_KGfjA7fx5Q@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Cc: Tim Bray <tbray@textuality.com>, "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:59:42 -0000

R S scripsit:

> + 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.

To which I add:

+ ECMAScript parsers only accept, and ECMAScript generators only generate,
+ numbers that correspond to the finite values of binary 64-bit IEEE
+ 754:2008 floating point numbers.

We'll need a non-normative reference, too:

    IEEE Computer Society (August 29, 2008). IEEE Standard for
    Floating-Point Arithmetic. IEEE.  doi:10.1109/IEEESTD.2008.4610935.
    ISBN 978-0-7381-5753-5. IEEE Std 754-2008.

-- 
Time alone is real                      John Cowan <cowan@ccil.org>
  the rest imaginary
like a quaternion       --phma          http://www.ccil.org/~cowan