[Json] Extended I-JSON Numeric Data Types

Anders Rundgren <anders.rundgren.net@gmail.com> Wed, 16 May 2018 05:38 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 84105127867 for <json@ietfa.amsl.com>; Tue, 15 May 2018 22:38:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.8
X-Spam-Level:
X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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 1oEz2RezyRGe for <json@ietfa.amsl.com>; Tue, 15 May 2018 22:38:39 -0700 (PDT)
Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 55DC8124234 for <json@ietf.org>; Tue, 15 May 2018 22:38:39 -0700 (PDT)
Received: by mail-wm0-x231.google.com with SMTP id l1-v6so5082617wmb.2 for <json@ietf.org>; Tue, 15 May 2018 22:38:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=5N8LiThEjHsl2ItU5jYgCZ1GgWfq9t0UsC4J4w5VIRo=; b=c1tq3kymg1zMUXQbQ5Q+h8IPGlAfyC74mYDco2BRBsmhoWkTy7nvDvHY3ICBTbqTqQ huDteYnSWrGYftDlzSchkMKYV1AXqbJ3xZOFZoe+UXEn/0dvvikQqIdK6DpMzxDH/vUy k2p7SKUxLRZTPDj6rKBF1jVoDHEtrQuHYyZcrS93H41rPbdK3L21FBwY6wHaT+gDoTmD ZuCqp0ADm7rGil2Mzx3e+46iwHljUyHGuONQqPLHKA1HAHZIjCTcJ8uTQR94pXbu4BD6 983oS2SH3sYJvE53/PxhV8RTlcF5WZ+33jgWhQX/h4QA0Mm2MZhiW7fEJkadhjYsuQga tmlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=5N8LiThEjHsl2ItU5jYgCZ1GgWfq9t0UsC4J4w5VIRo=; b=e8RNd9jAnYpa3gDRmkVZiMWpSo43qRfR1oYzcKhRgivtagAwXG6FNZOQ3K6WQ8OY1u IK63ExPT0jI2jbFLmVm90cZ74/aaECJOp+eMnizuuBibDZ+lssLiuiGMEnJ/icf+dlyd YNIgW+j6TZycHj3kTYizibq02wCRltxgD1kYKntOnqSRZFq3JJONdFNmfHXfsC6AFQAN qpiBaCuIwIt5WI3S1zYmFK6s4B5wbQ4cRRkI+6e+5ywRHwOltwkwbhQOHbK5cH0+7s0T 2A/B/YRSxh97nngnjLNA0OkVvmNaNojOi4SmPEirm4sB0DN4ifNwMaGN7ALYFLQAVAs+ X7Hg==
X-Gm-Message-State: ALKqPwcXDiG19uPC3ow/tc/aa3GlBdCmaDGwqpzufvvj074r1/d2afQm HQxBbXV921zyue3kP4niJjgYbQ==
X-Google-Smtp-Source: AB8JxZoAzZHL9+MJHZ7qdtuv/IRuI3eqfyUETbFfxXv2UZs4NkrC1nIT21eoGhHADbgNPlBOwH5nIw==
X-Received: by 2002:a1c:d546:: with SMTP id m67-v6mr541579wmg.117.1526449117175; Tue, 15 May 2018 22:38:37 -0700 (PDT)
Received: from [192.168.1.79] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id l69-v6sm3174440wmb.30.2018.05.15.22.38.35 for <json@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 22:38:36 -0700 (PDT)
To: "json@ietf.org" <json@ietf.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <ce52c285-e60b-218d-fda7-b30edc75fa52@gmail.com>
Date: Wed, 16 May 2018 07:38:34 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/6Tx8NRr_pEzGf4Nfn7mh9biZFEA>
Subject: [Json] Extended I-JSON Numeric Data Types
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 16 May 2018 05:38:41 -0000

Since the dormant JSON WG has expressed no interest in numeric data types outside of the universe constrained by IEEE-754 double precision, various (entirely uncoordinated) vendor initiatives are currently in the works.

Twitter's "solution" to message IDs
{"id": 10765432100123456789, "id_str": "10765432100123456789", ...}
pretty well illustrates the JSON number enigma  :-)

Here is my personal take on this matter:
https://github.com/cyberphone/I-JSON-Number-System#extended-numeric-data-types-compliant-with-i-json

Cheers,
Anders
https://cyberphone.github.io/doc/security/draft-rundgren-json-canonicalization-scheme.html