Re: [Json] Minus Zero

Anders Rundgren <anders.rundgren.net@gmail.com> Tue, 21 June 2016 15:21 UTC

Return-Path: <anders.rundgren.net@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 3A51712D95F for <json@ietfa.amsl.com>; Tue, 21 Jun 2016 08:21:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9vD0_54qj4qI for <json@ietfa.amsl.com>; Tue, 21 Jun 2016 08:21:06 -0700 (PDT)
Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com [IPv6:2607:f8b0:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE64D12D14A for <json@ietf.org>; Tue, 21 Jun 2016 08:21:06 -0700 (PDT)
Received: by mail-vk0-x22f.google.com with SMTP id j2so24727766vkg.2 for <json@ietf.org>; Tue, 21 Jun 2016 08:21:06 -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; bh=JVSKMAM0YTdjRQD9itb3W7PZXRXtGeXiNAQe4YAO6JY=; b=HELYx5jqHAz3wb1kO2/t41CSXqgzbWccAgyWWciIPsIrT4ACvGvaBe2o9TCKWHzQCm rQ7vTC2MPt1zHu+zeOl9H1iwFQPWZ4PSQaIatFfy34UHGqykh2TWL8PpP76+08pqeoOD lFPY/XoID0H+PXfO3cmsNfSastnyFeDM8Z7iIXYaVbSwUzhwqSqyOgwdZWRa9sC/unz2 XhiShIlRV/a4Ty01BSJiirrTWreQD+OULlkEv7TCr8IAAqaiNm35IVK+hOk16pocaS5k uwGRg8UQHCm2YaKxWesuDSvDIh9DMPOPGucNImHQjcceU7zaSa6/4PWxuisdK48BBkke XiQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=JVSKMAM0YTdjRQD9itb3W7PZXRXtGeXiNAQe4YAO6JY=; b=Anp/vwEf8aKaISZVhXXwJv7k3NYq221VLlQB9KM09AvzszuhHt0AgJQHmavF47UEUB 1q0ejucs3KK7s0T2KiuJ683tHHrUVFqrw89YUHtUu6+8IJZ7Wkstn0kHCccufHV9vddi CDCRh8pwM8zsIJvO7JkWcy/nxsjp72/3g21DD0OehP00Btz1sjnApIIfH9vA7iaUVTQ2 qESne72pVZwMQjo3JfD0GGM3Yv7rzZEJLQqGwGUSCZvjyF47Pc8NKO4V8J/0/al+CVSS KOZ3uuV1AdpOMZz+zGZOVY2/iKPXIjLLWYzISRR9MshBBZrqwi2RztWRBvTD3+LA6nNP zMZA==
X-Gm-Message-State: ALyK8tKrwNzG1kXgSDRrIpFLiACY2BBHlc7XT7LvAx1X1Xo54lyyhwj2DRkg8rU+/NTDjODey0BDLe59ZIh1pQ==
MIME-Version: 1.0
X-Received: by 10.31.203.131 with SMTP id b125mr10228828vkg.5.1466522465725; Tue, 21 Jun 2016 08:21:05 -0700 (PDT)
Received: by 10.103.71.155 with HTTP; Tue, 21 Jun 2016 08:21:05 -0700 (PDT)
Received: by 10.103.71.155 with HTTP; Tue, 21 Jun 2016 08:21:05 -0700 (PDT)
In-Reply-To: <8e5dc4b2-a897-30e7-6e37-921c463275cd@gmail.com>
References: <2a7f88b9-f719-dfd8-08a9-1777833e53d8@gmail.com> <e94f3bd0-1635-b2e1-c5da-9ae350ae652d@gmail.com> <57684982.2010705@tzi.org> <8e5dc4b2-a897-30e7-6e37-921c463275cd@gmail.com>
Date: Tue, 21 Jun 2016 17:21:05 +0200
Message-ID: <CADEL5zv-0ZRdcXKp1R=EBHqcJquOR7CYR=EW75xmtFpXG5OLOg@mail.gmail.com>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
To: Christian Zangl <coralllama@gmail.com>
Content-Type: multipart/alternative; boundary="001a114dd0609ff2a40535cb5e84"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/VKZQWF3UKWsJpZ0PhTsQAVQAstA>
Cc: Carsten Bormann <cabo@tzi.org>, JSON WG <json@ietf.org>
Subject: Re: [Json] Minus Zero
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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, 21 Jun 2016 15:21:08 -0000

On Jun 20, 2016 10:55 PM, "Christian Zangl" <coralllama@gmail.com> wrote:
>
> On 2016-06-20 21:52, Carsten Bormann wrote:
>>>
>>> Serialization is not really a part of the JSON RFC.
>>
>>
>> Well, it defines a format that can be used to serialize the JSON data
>> model, but is not specific about corner cases in that data model.
>>
>>> ECMAScript V6 (ES6) is is the only normative JSON serialization
reference.
>>
>>
>> But that is only relevant to ES6 implementations; we don't have to care.
>
>
> OK, but since RFC 7159/6. already mentions "[..] Note that when such
software is used, numbers that are integers and are in the range
[-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations
will agree exactly on their numeric values," couldn't the 0/-0 case be
mentioned as well?
>

Implementstions do NOT agree on floating point serialization.  Neither text
(like E or e), leading zeroes or even values are to be counted on.

Anders