Re: [jose] ES6-compatible JSON Number Canonicalizer in Java

Mike Jones <Michael.Jones@microsoft.com> Thu, 29 October 2015 22:02 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 603B91B3236 for <jose@ietfa.amsl.com>; Thu, 29 Oct 2015 15:02:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 QSrMKc-jCPge for <jose@ietfa.amsl.com>; Thu, 29 Oct 2015 15:02:02 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0776.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::776]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 000A11B3235 for <jose@ietf.org>; Thu, 29 Oct 2015 15:02:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mTOKYrsh6h5PxuIIGh1SnYyTjCqWDk6+wlPZJnzxHJ8=; b=a8J23qTPyuGoG2JkJN1ekHv6Wyf1aeU1mMAgqBx+7V+1w+MGu2pcbIjqYUm4Tj6PgwPNcEncI0SP32ykJgcltxL91dD30D2D7vAq01+0MGVSTA4NQ7SbAL3Mvh/ZLO79rRqpOOE1/qP8JmxVZStZRCPPkHr4+llxNstW7z3BQJU=
Received: from BY2PR03MB442.namprd03.prod.outlook.com (10.141.141.145) by BY2PR03MB444.namprd03.prod.outlook.com (10.141.141.154) with Microsoft SMTP Server (TLS) id 15.1.306.13; Thu, 29 Oct 2015 22:01:42 +0000
Received: from BY2PR03MB442.namprd03.prod.outlook.com ([10.141.141.145]) by BY2PR03MB442.namprd03.prod.outlook.com ([10.141.141.145]) with mapi id 15.01.0306.003; Thu, 29 Oct 2015 22:01:42 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] ES6-compatible JSON Number Canonicalizer in Java
Thread-Index: AQHREpSDmvu7XdX/tESiNz7p2zQvtJ6DBQkQ
Date: Thu, 29 Oct 2015 22:01:42 +0000
Message-ID: <BY2PR03MB442CAF752B1D1AAD5BB9B67F5200@BY2PR03MB442.namprd03.prod.outlook.com>
References: <563295BB.90906@gmail.com>
In-Reply-To: <563295BB.90906@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-originating-ip: [64.71.18.60]
x-microsoft-exchange-diagnostics: 1; BY2PR03MB444; 5:OokzxarpoN9IKfsvPnNQQJ29HqtU64J/pDwqDLW5x4NmvTfftyXZImGL8bGYN6YRjyu0pMQw+nt3BJ31A7HFSnlLYUuH2UljjpgxlPrdr2AjxzAIgRXtBhYoylDTS55lolsqpE8jRmursZFzAGcknw==; 24:f828aJnFGDOILCevvKYl7ev8XOEW167d32g6mT+1DkWSntvdNrFR+mDAS4B6yjZjZJdMOLGQ5XiO5COY6gdszi8PfO+nSb+REEntYrckmBc=; 20:uDhljVR/ixjqIy+uotRCXwByAEs+0z6ySdnJ8kKhK1j9BCpRqCZ/EAbd5LMZpU4tjuQ3GtmGtOZsbje8Nva/yg==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB444;
x-microsoft-antispam-prvs: <BY2PR03MB44409898FEB4CF1DE07085DF5200@BY2PR03MB444.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425024)(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001)(102215026)(61426024)(61427024); SRVR:BY2PR03MB444; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB444;
x-forefront-prvs: 0744CFB5E8
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(377454003)(13464003)(97736004)(101416001)(50986999)(5007970100001)(5004730100002)(86362001)(19580405001)(105586002)(8990500004)(54356999)(76176999)(10400500002)(10290500002)(76576001)(5005710100001)(2501003)(2950100001)(189998001)(19580395003)(11100500001)(5003600100002)(5001770100001)(86612001)(77096005)(74316001)(5002640100001)(92566002)(99286002)(66066001)(102836002)(106116001)(33656002)(40100003)(2900100001)(19300405004)(107886002)(5008740100001)(81156007)(106356001)(87936001)(15975445007)(15395725005)(10090500001)(5001960100002)(122556002)(562404015); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB444; H:BY2PR03MB442.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2015 22:01:42.3391 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB444
Archived-At: <http://mailarchive.ietf.org/arch/msg/jose/EJWfEfyu0_RP3Vizmk1fu4YFExc>
Subject: Re: [jose] ES6-compatible JSON Number Canonicalizer in Java
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
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, 29 Oct 2015 22:02:04 -0000

You're missing the point.  It's not whether you can write custom code that will always do the same thing.  I'm sure you can.  It's whether the vast majority of deployed JSON serializers will also do exactly the same thing.  It's that latter that would need to be true in order for it to be a reasonable basis for a successful standard.

-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Anders Rundgren
Sent: Thursday, October 29, 2015 2:55 PM
To: jose@ietf.org
Subject: [jose] ES6-compatible JSON Number Canonicalizer in Java

I have only spent some 10 hours on this code so I can't guarantee that it is perfect:
https://github.com/cyberphone/openkeystore/blob/master/es6-numbers/src/com/example/es6numbers/Test.java

Result:
http://webpki.org/ietf/es6numbertest.html

Anders

_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose