Re: [jose] Canonical JSON form

Neil Madden <neil.madden@forgerock.com> Thu, 11 October 2018 05:33 UTC

Return-Path: <neil.madden@forgerock.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 96022130E26 for <jose@ietfa.amsl.com>; Wed, 10 Oct 2018 22:33:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=forgerock.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 F1ct8u6N6Yq7 for <jose@ietfa.amsl.com>; Wed, 10 Oct 2018 22:33:46 -0700 (PDT)
Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 A4FC2130E21 for <jose@ietf.org>; Wed, 10 Oct 2018 22:33:46 -0700 (PDT)
Received: by mail-wr1-x42b.google.com with SMTP id a13-v6so8123132wrt.5 for <jose@ietf.org>; Wed, 10 Oct 2018 22:33:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JzEhU3jIg/Wa+AUvroJDr/PdWdA/Ot4Nn15Fp3KcJg0=; b=AkEKQFVheaUsAYzmxyDqC5Cf/Zlpea3aT+/Cq84sBcmntjCHDE7+B5uhw7slouHo2T MP7OfFSCSsRtWUlD+ZBicHgomeKar3D/6AmStrW7YVNUyb8YyOjv+wUfIdFfwwzcFPpX hguldo3hLb0L/an/4mRRs5csdNALsvR+jr5vk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JzEhU3jIg/Wa+AUvroJDr/PdWdA/Ot4Nn15Fp3KcJg0=; b=Xf4k7wcBU5V/FUr+7PPC3ggDoqyUKv8lLrGi2GgR2BwdKGYGnnFoCPmVoQxtx4tBtm prAAY8RLM6SHEmAt/Cviy1+rTbECDtt1bOocWFncMUGxaAdu/wWxndOHeEVxsBgP34fy w9EW38urAhKR671iaD4nBQhfb1pXRAbIKHycOd0wzA0HqTchezqq9IX5/qZ12P/lzXdt BdtEnx//Rs9mNufSygaMUKVqmQmLqPqiMVYGIGAISRm83qLcuowGIoggknSURLtaXYIi 4AGtBvOR72DgZN1QfxpF2/587Poym9MovZM4rfHX/g2AoBFNKn0oGzSG1AyM/1rbt9bK H6Zw==
X-Gm-Message-State: ABuFfoiCM6GBzmqyhsJTClwXFt8V9axio4OHde9zgBFG7Wp+0BlbykXy pivEA8zjJkTTZRwGMnQX5QmJY8fDRvf6WHrh5kabWwabvXn1/Z20L/GqXpQSmTN1tF/3buhsJ7y aMdGNWqOIj1mdxVSRVdj0/eKcH3Izt6rcbtWQD44Z+XMbZF25PTN6laNDdL55qkGq
X-Google-Smtp-Source: ACcGV62iKd5wvbOGrrcounSDCMqGuSJVPAHYEmnf+NgBy3DxPvIdfxSphIk64p69o7iaCuhM6/IPyw==
X-Received: by 2002:adf:f5c6:: with SMTP id k6-v6mr109482wrp.59.1539236024691; Wed, 10 Oct 2018 22:33:44 -0700 (PDT)
Received: from [192.168.1.65] (41.167.189.80.dyn.plus.net. [80.189.167.41]) by smtp.gmail.com with ESMTPSA id t24-v6sm41976488wra.5.2018.10.10.22.33.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 22:33:43 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (1.0)
From: Neil Madden <neil.madden@forgerock.com>
X-Mailer: iPhone Mail (16A366)
In-Reply-To: <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com>
Date: Thu, 11 Oct 2018 06:33:42 +0100
Cc: Jim Schaad <ietf@augustcellars.com>, Nathaniel McCallum <npmccallum@redhat.com>, jose@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <69EB3C20-0863-4D00-948B-989EB69D67CD@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>
To: Bret Jordan <jordan.ietf@gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/A-aZ6F7TCbq70gV8wyIAmmj-Rrw>
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 05:33:49 -0000

> 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