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

Bret Jordan <jordan.ietf@gmail.com> Mon, 18 February 2019 18:11 UTC

Return-Path: <jordan.ietf@gmail.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 83F90130E6E for <json-canon@ietfa.amsl.com>; Mon, 18 Feb 2019 10:11:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.998
X-Spam-Level:
X-Spam-Status: No, score=-0.998 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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 yYc2R7Q0E4ug for <json-canon@ietfa.amsl.com>; Mon, 18 Feb 2019 10:11:10 -0800 (PST)
Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) (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 40097129B88 for <json-canon@ietf.org>; Mon, 18 Feb 2019 10:11:10 -0800 (PST)
Received: by mail-yb1-xb41.google.com with SMTP id j62so7127477ybb.1 for <json-canon@ietf.org>; Mon, 18 Feb 2019 10:11:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yCvpHlle6V6RfCmQseaPyYUUDTlyHocrPBKry7OHLSs=; b=KNT/frw6FMAYj3LrxDCsAfIqbJQ0doXMW4d5q6rEslvTTrCjJbrsyLoJ3P0Zmcj1zl aNjIWv86jZAX8EfPrP9bCFNvnSGHrn5wCj+hOZOKLCkaTyMtRIe6XJzFYTW4QkwXuA1M 4qsnpncZM+4R6unVW5KBv0NbWrExPrJaMp+irybFx9cD/cEhUFTYY23f/yMtTRvKj+AY OOj5wxWsGj2p9GfgIdGM462vUKptTQZRrczG+H5LxKSCAHzpYMdxU6KFocn7jDTOdQLj gNRWsQKo6xLIPrqSlCsT6OFfF/2zRw2zQzu2P1TLLESUVpY1V+CJ1ITSpBqunLmTLZ9k 5hWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yCvpHlle6V6RfCmQseaPyYUUDTlyHocrPBKry7OHLSs=; b=WAyGaff5wCMGVc8PtMZCtSErjjQ44ovBE8Bh0zQRYhN/w2wEs4Gmo8UiI3Izv4UY2d yLDjvZKlhz0cIpnb6zS+7T+nxzmljYaOnlXBW4wPN9N/oh/zx64qJyP2Mnr2kXnrOunP QsHX9k7jVGrKz0SBSPApYlkzDYtq4vgvDdebuQYtG5F/v/Q6wMPw2Q7SbuJ1FqiCzFiI ZWFMUWre+PuPlXVhtdpmfXHVk41UWEx2acBpNExSxNbdKw7DDN+UeYyp0U0lIzr6dUFq R+m961q53AJQwi4fjZhopKzJeL4e8rdgC8vnjBqiUIo9H0uHJDNzCY/pO02RtpTR2AAH oMWg==
X-Gm-Message-State: AHQUAuZPSVdL6TRWNuBosqKC0Zy0L+nJ32kesYHZT2g+QyOWC0HWaZT7 z3oBnZgQHE+G2l0ElAjG6vs=
X-Google-Smtp-Source: AHgI3IaoLXnMNGjeteA7AAUkzukTzeYo79D7y4q8DYNIYtAjgoVT8TcgBZwQZxRkG1gvAFPFoh8yaw==
X-Received: by 2002:a5b:406:: with SMTP id m6mr16438512ybp.367.1550513469368; Mon, 18 Feb 2019 10:11:09 -0800 (PST)
Received: from ?IPv6:2605:a601:a028:986:6db5:118c:d6cc:e636? ([2605:a601:a028:986:6db5:118c:d6cc:e636]) by smtp.gmail.com with ESMTPSA id h189sm5730782ywd.24.2019.02.18.10.11.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 10:11:08 -0800 (PST)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <257C335A-DFD6-4A23-ACB9-9F6985D127D1@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_ED468970-DA06-420D-A5B0-48C0EB5BB784"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Mon, 18 Feb 2019 11:11:05 -0700
In-Reply-To: <015901d4c74e$b01e9dc0$105bd940$@augustcellars.com>
Cc: Samuel Erdtman <samuel@erdtman.se>, json-canon@ietf.org, Anders Rundgren <anders.rundgren.net@gmail.com>
To: Jim Schaad <ietf@augustcellars.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> <015901d4c74e$b01e9dc0$105bd940$@augustcellars.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/json-canon/8vKkun82CrgCf6a2JXuByXvo74I>
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 18:11:13 -0000

I fully agree Jim


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 17, 2019, at 10:56 PM, Jim Schaad <ietf@augustcellars.com> wrote:
> 
> +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
>>