Re: [jose] Canonical JSON form

Bret Jordan <jordan.ietf@gmail.com> Thu, 11 October 2018 14:34 UTC

Return-Path: <jordan.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8A0A8130E95 for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 07:34:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 2pTDCLavtaNV for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 07:34:53 -0700 (PDT)
Received: from mail-yw1-xc35.google.com (mail-yw1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) (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 853AC130E88 for <jose@ietf.org>; Thu, 11 Oct 2018 07:34:53 -0700 (PDT)
Received: by mail-yw1-xc35.google.com with SMTP id m129-v6so3671365ywc.1 for <jose@ietf.org>; Thu, 11 Oct 2018 07:34:53 -0700 (PDT)
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=Yst+gWR6DcHkVUc6fRJ0crXuxNRvudwu2gWtibMHQWo=; b=VijScT4ASdcYkMoLBo6x6ReWYUUihGDFImFC037Wryo/woAPaNB85jxjdKFr9T3j2O 0TkSblphcqGFnl9nazkrKQAP+CpXB7nOvfpyEY4+6ktngkLGrztnOKU6BRNe+gBsjfNp oqchfNQ0uqgutZJFLA6VN1X7NvdBe4L06qABObZcohJLtvCjphav46utnYlhIvnEjVD9 2oxF4L4440zLnCoYXx3DlFwna6qGDAqqzsAH6vNR0n5frq4q5Tmc+aLzkTXDXwxwsnHF 2MQJSUdB6JYIUdjwDg+OURvDV1/JppEL+VU2AE9pjLydMOkistYMp99S6JcWfBATDCz3 hx7A==
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=Yst+gWR6DcHkVUc6fRJ0crXuxNRvudwu2gWtibMHQWo=; b=awrJ3dyerFNGBKdjT0M/yDszD+EJHQEczafGyRTQYHnpsErZll4iUjZm6v7gnvvUx1 WLK9sMnXx+wQvCCQUnq6nTWfoz17xr3daLBsGWYeBBzSTJCtJ3zOWCXvYuJ8EK2aD7/T BseQA4h0faPigzCVeqMpL7uLMK3Q1VgDLT47LWKMgvDkf+/7p0CgJxjWj1qnoGPoPmZd tl1k542kTfBUbSLtPQ7+RG4wbchcx/hzoBb6gn1GE9auPeLer0FVLKg9fUZBOi5QMznB ktdEeovVgHHhueaWMi+5FHww3h/CRunximzc9Nen31oKXoAwibA1yEi6z735TzvEpQpZ 4H8Q==
X-Gm-Message-State: ABuFfoi8uaytmXAyKDL2S/wTeCTOU3X+PXZQaclpV3KkOnSZdMoFGI5H nED8rzeGxmRkLb0DkNg+P2n7+Q92
X-Google-Smtp-Source: ACcGV60NM4X8rYG0QpG2qyFxiivpBH5fDtIXp8nFTWtzL7tjBdHUP0rLS/S3jBBiqr+nxAFVOUm2hQ==
X-Received: by 2002:a81:2b41:: with SMTP id r62-v6mr1039284ywr.234.1539268492872; Thu, 11 Oct 2018 07:34:52 -0700 (PDT)
Received: from ?IPv6:2605:a601:3260:266:7534:8ac9:bb4c:ce9d? ([2605:a601:3260:266:7534:8ac9:bb4c:ce9d]) by smtp.gmail.com with ESMTPSA id 71-v6sm10905055ywd.101.2018.10.11.07.34.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 07:34:51 -0700 (PDT)
From: Bret Jordan <jordan.ietf@gmail.com>
Message-Id: <8E99AF32-6DBC-48BA-B4E8-768AFE196FB7@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_C89F028D-FE12-4475-9AF1-4DDD3A700099"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 11 Oct 2018 08:34:13 -0600
In-Reply-To: <69EB3C20-0863-4D00-948B-989EB69D67CD@forgerock.com>
Cc: Jim Schaad <ietf@augustcellars.com>, Nathaniel McCallum <npmccallum@redhat.com>, jose@ietf.org
To: Neil Madden <neil.madden@forgerock.com>
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <CAOASepNX4aYVmPWXyODn0E2Om_rimACPECqJBvZSOXVVd_p8LA@mail.gmail.com> <D21F3A95-0085-4DB7-A882-3496CC091B34@gmail.com> <CAOASepM=hB_k7Syqw4+b7L2vd6E_J0DSAAW0mHYdLExBZ6VBuw@mail.gmail.com> <00ad01d460f4$69ae8a00$3d0b9e00$@augustcellars.com> <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com> <69EB3C20-0863-4D00-948B-989EB69D67CD@forgerock.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/t0I2KZFVobRS03CNSEX-aByGsOI>
Subject: Re: [jose] Canonical JSON form
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2018 14:34:57 -0000

Neil,

That is interesting.  But as others have said, I need to be able to round trip the content.  The JSON data needs to be consumed by solutions, acted on, added to, and resigned.

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 Oct 10, 2018, at 11:33 PM, Neil Madden <neil.madden@forgerock.com> wrote:
> 
> 
>> On 11 Oct 2018, at 01:02, Bret Jordan <jordan.ietf@gmail.com> wrote:
>> 
>>> 
>>> Other implementations say that you should preserver the order of the fields you read when serialized which is part of JSON for the browser implementations but not necessarily elsewhere.
>> 
>> Preserving order is hard.  Depending on your programming language you might be deserializing the content in to a struct or you may be using a map. 
>> 
>> What I need is a way for individuals and organizations to be able to pass around and share JSON data and collaboratively work on that JSON data and sign the parts that they have done. 
> 
> Have you considered Git with PGP-signed commits? It solves this use-case extremely well.
> 
> — Neil