Re: [Json-canon] Dropping "Comparable" JSON

Jim Schaad <ietf@augustcellars.com> Mon, 18 February 2019 05:56 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: json-canon@ietfa.amsl.com
Delivered-To: json-canon@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90614130ECA for <json-canon@ietfa.amsl.com>; Sun, 17 Feb 2019 21:56:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 PW90yxGxg5Jm for <json-canon@ietfa.amsl.com>; Sun, 17 Feb 2019 21:56:32 -0800 (PST)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7269130EC5 for <json-canon@ietf.org>; Sun, 17 Feb 2019 21:56:31 -0800 (PST)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 17 Feb 2019 21:56:25 -0800
From: Jim Schaad <ietf@augustcellars.com>
To: 'Bret Jordan' <jordan.ietf@gmail.com>
CC: 'Samuel Erdtman' <samuel@erdtman.se>, json-canon@ietf.org, 'Anders Rundgren' <anders.rundgren.net@gmail.com>
References: <00dc01d4b51c$618cdbc0$24a69340$@augustcellars.com> <f4b64343-e8db-57cf-152e-aeba44dc4863@gmail.com> <060401d4c035$d35d3e10$7a17ba30$@augustcellars.com> <7f7557ae-c86a-013a-6758-279034728be5@gmail.com> <F80FF7EB-B1A2-4337-8BC7-86E6C1AB725D@tzi.org> <354466BD-9D7C-463F-BBB4-E797267726A4@gmail.com>
In-Reply-To: <354466BD-9D7C-463F-BBB4-E797267726A4@gmail.com>
Date: Sun, 17 Feb 2019 21:56:24 -0800
Message-ID: <015901d4c74e$b01e9dc0$105bd940$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_015A_01D4C70B.A1FC6F30"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKM6YQQYC7r3DsdqZf77BCrHHAS2AJANXPsAZ8LhsgCYSVWcAKXHTnBAnkjN4mkGkS14A==
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/json-canon/mwYD68CvoSkBUd8INZLk4bvsxUI>
Subject: Re: [Json-canon] Dropping "Comparable" JSON
X-BeenThere: json-canon@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Canonicalization <json-canon.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json-canon>, <mailto:json-canon-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json-canon/>
List-Post: <mailto:json-canon@ietf.org>
List-Help: <mailto:json-canon-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json-canon>, <mailto:json-canon-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Feb 2019 05:56:35 -0000

+1

 

What I care about here is JSON – there are a limited number of data types for JSON.  I don’t care about trying to shove other JavaScript types or C++ types into JSON strings.

 

Jim

 

 

From: json-canon <json-canon-bounces@ietf.org> On Behalf Of Bret Jordan
Sent: Wednesday, February 13, 2019 1:22 PM
To: Carsten Bormann <cabo@tzi.org>
Cc: Samuel Erdtman <samuel@erdtman.se>; json-canon@ietf.org; Anders Rundgren <anders.rundgren.net@gmail.com>
Subject: Re: [Json-canon] Dropping "Comparable" JSON

 

I am not sure I understand what you are proposing or what changes you would like.   I personally think that JCS should focus on a very limited and narrow set of use cases.  We should address how to represent JSON in a canonical form, period.  What people do with it beyond that is out-of-scope.

 

Thanks,

Bret

PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050

"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not be unscrambled is an egg."





On Feb 12, 2019, at 10:02 AM, Carsten Bormann <cabo@tzi.org <mailto:cabo@tzi.org> > wrote:

 

On Feb 9, 2019, at 08:05, Anders Rundgren <anders.rundgren.net@gmail.com <mailto:anders.rundgren.net@gmail.com> > wrote:




I begin to wonder if "Comparable" JSON (in the draft named "true" canonicalization) shouldn't be a "Feature at Risk" as the W3C folks call this.


Well, first of all, there is no “feature” here — the current draft just points out that deterministic encoding (“canonicalization”) reaches up to the application using JSON wherever that does its own encoding work.

That is a fact that is good to know, but nothing is contributed to interoperability by this document.

To do so, one would need a way to describe elements of the application data model and constrain the application data encoding decisions made on the way to the JSON data model.  We don’t have a good way to do this at the moment (even if the document misleadingly mentions the “schema” word).

Actually, the document about deterministic encoding of JSON (your “Hashable” thing — I still have no idea where these confused terms came from) could be stating this fact, if only as a matter of delineating what is *not* being defined in that document.

The document currently does not say how it was intended to be developed further.  As it stands, it is indeed of little use.  Collecting a set of preferred application-data-model to JSON-data-model encoding decisions, however, might be a useful undertaking, somewhat unrelated to the constraints on serializing the JSON data model that the other document wants to define, and probably on a much longer time scale.

Grüße, Carsten