Re: [dispatch] PING2. Re: JSON Canonicalization Standard

Larry Masinter <LMM@acm.org> Wed, 05 September 2018 23:07 UTC

Return-Path: <masinter@gmail.com>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 902C51294D7 for <dispatch@ietfa.amsl.com>; Wed, 5 Sep 2018 16:07:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.504
X-Spam-Level:
X-Spam-Status: No, score=-1.504 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.146, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no 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 SQ23UEGbdc8U for <dispatch@ietfa.amsl.com>; Wed, 5 Sep 2018 16:07:21 -0700 (PDT)
Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (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 89B1D12426A for <dispatch@ietf.org>; Wed, 5 Sep 2018 16:07:21 -0700 (PDT)
Received: by mail-pg1-x52a.google.com with SMTP id x26-v6so4151153pge.12 for <dispatch@ietf.org>; Wed, 05 Sep 2018 16:07:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=rAuHkbXjdPB1K32jHUgzCMdFk/gHltgp0QRlUWV+p8Q=; b=FB5bDJjmXOoKIkMm1WiOHNLcJvx4mbZMlqK9t/NuSYqLKprxX8LvdSmUVXp82VdPgK vQxphjokBj8OFs761FpJ70KAs8rgJ3vcms1j/A5KmMtpOTAsayLNXhbVb6VAtQa/39Ao 1yWWsDv3qgFQd/AcoaHdOQPBl80tH3B1+K0316lBfFR56We0x4kw77Bx6JpDypl8Wng/ dDxVMKoDkvH0PtGOKY9GyYv5MnU0OODHYN9xh++ANatwdqas5L9SJ7Pq2Oepv00jCd23 G9RAXe0ihvaunslwpAAXTV7uQyZRURJpleXimF6UnMradcWA/JnsmaKEhbY6EQ6P72ob FA8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:references:in-reply-to:subject :date:message-id:mime-version:content-transfer-encoding :content-language:thread-index; bh=rAuHkbXjdPB1K32jHUgzCMdFk/gHltgp0QRlUWV+p8Q=; b=ZltGfegDcHeYm8LG95c1NhJQ9H7yFDcVYjNfVuzI4rpz6YoqIAA+HBuaEr/M4h1I8S V6pBVxCmHP6unO3QiyaTgRgUXl/UNtsbP83tm6TAIX/DC7+eL7gGy3X8lJKGwiO5lVkx UE0VNrbPfHyx5IVfwKDVQNMG1vPs3BJSy8XdQrXqi7Hu4P6RKtujKWyYI/maer0mJeLg YjwJtjK8qtjavffTO+3FRaQvTg8sGhIhkkZ7Sz/WfHX4qPHo9KK/jOUcgGEmBVG99Dlq HlVs1lETfd+Qk7WkAQVYs/VdRe52Ncwfx9bYdLlzzaUaDlSg5bPdoRHFjHWUTkD9Q32/ JleA==
X-Gm-Message-State: APzg51A09BP8vSFI4qlwZbxM2LvlANrFsFyYPEYVtAju6Z8uehkdM0S/ LysADDJDvB3o7wVOVL0j+juul7rl
X-Google-Smtp-Source: ANB0VdYJtkMA5g1eYwCjFw5Dy0+ArGdVnsvpHmixJBrPHmvVpfRBsqfTme6suvbCpGSNzVj4ZyZZFg==
X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr38097718pgc.367.1536188840638; Wed, 05 Sep 2018 16:07:20 -0700 (PDT)
Received: from TVPC (c-24-6-174-39.hsd1.ca.comcast.net. [24.6.174.39]) by smtp.gmail.com with ESMTPSA id s9-v6sm4754778pgc.16.2018.09.05.16.07.19 for <dispatch@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 16:07:19 -0700 (PDT)
Sender: Larry Masinter <masinter@gmail.com>
From: Larry Masinter <LMM@acm.org>
X-Google-Original-From: "Larry Masinter" <lmm@acm.org>
To: dispatch@ietf.org
References: <4fea5830-dd5a-1709-f0d6-c8af28a78f94@gmail.com> <a51e4821-e022-d366-07ab-dab1c024961f@gmail.com>
In-Reply-To: <a51e4821-e022-d366-07ab-dab1c024961f@gmail.com>
Date: Wed, 05 Sep 2018 16:07:18 -0700
Message-ID: <00d601d4456d$32356960$96a03c20$@acm.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
thread-index: AQGbpC32bfF4qmMvSIxVPF2RyBXJUwFTulH0pUjuyNA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/KharELeDVL2QLanoRrpXunGpSlw>
Subject: Re: [dispatch] PING2. Re: JSON Canonicalization Standard
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Sep 2018 23:07:23 -0000

A canonicalization of a space should apply to all valid values, and
shouldn't map two semantically different values to the same canonical form.

JSON intentionally allows large integers and floating point numbers outside
of IEEE range of capabilities (1e400, 99999999999999999999).
 
While some implementations will coerce values and round off, I think a good
canonicalization should leave these values intact, if you're want a JSON
canonicalization rather than an "ES6 value serialization" canonicalization
(a strict subset).