Re: A standard for XML - JSON mapping.

tom p. <daedulus@btconnect.com> Tue, 02 February 2016 16:42 UTC

Return-Path: <daedulus@btconnect.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C36461B2C36 for <ietf@ietfa.amsl.com>; Tue, 2 Feb 2016 08:42:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_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 mD6rcJVU4U8H for <ietf@ietfa.amsl.com>; Tue, 2 Feb 2016 08:42:27 -0800 (PST)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0738.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::738]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB90F1AD0BF for <ietf@ietf.org>; Tue, 2 Feb 2016 08:42:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Hz+ygCQaSDK8FP/Jk5O/yb6omwkxXBUyUrzMW5zPbSM=; b=c5o3zgE+D+DarKRPtpMWRymLCtl62nwlhbsmIyDHnABavNbnLpYfcwZ2l76yt+OPRe3+4G/w7/n6SXamCD1RpYxw10OYGEuIYeIJMjGKrpybWjsngNpdgNKf+Zae6TJDSOsxmgnXYyw+7a9CfBe0O+LWNF+1lvyDH86RgGj5VaM=
Authentication-Results: tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=none action=none header.from=btconnect.com;
Received: from pc6 (86.185.87.133) by VI1PR07MB1567.eurprd07.prod.outlook.com (10.165.239.13) with Microsoft SMTP Server (TLS) id 15.1.396.15; Tue, 2 Feb 2016 16:42:08 +0000
Message-ID: <002901d15dd8$39438360$4001a8c0@gateway.2wire.net>
From: "tom p." <daedulus@btconnect.com>
To: Carsten Bormann <cabo@tzi.org>, Julian Reschke <julian.reschke@gmx.de>
References: <CAB=rKNHnJt-zExrfEjSidd1QumP+vuqHwF2S7MCWUgXmJN19hQ@mail.gmail.com> <56AF030F.3090806@gmx.de> <56AF2DC2.20005@tzi.org> <56AF3B9A.1050502@gmx.de>
Subject: Re: A standard for XML - JSON mapping.
Date: Tue, 02 Feb 2016 16:38:54 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [86.185.87.133]
X-ClientProxiedBy: DB5PR01CA0070.eurprd01.prod.exchangelabs.com (25.163.24.38) To VI1PR07MB1567.eurprd07.prod.outlook.com (25.165.239.13)
X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1567; 2:D59wH9892nrQaFe+3lyUGkZpTgDH1WyZ7S/ynkvJ8IFmMOjAt4q8xp/a6B/w4MUjcDkP9nAia8lVLB+KG632zEQRrWXF4kRp8k/daes5Wh+4WNfg6tdNPn/TMIBLDknvUjt1XY3OVtWh3f3vwMaLww==; 3:bQnwQjXbufUt+xUTa842Q7BVdMLCVHK4RbgQOCGriuTVYT3u+ZPduuc2hFCkP3Tbmlnk6otIMEgLCGWvkHh9HpLoPykrArywP0iedSnbHRUnVoxZy3iQEpBkey4Be60o; 25:oJ11XN3ktfn/XYScJn+BdlSa3CxeByHCpzasZ+TVFtgcFLggj7wqo3MpPdSO5zuyQRxTC8wM7M+fiY8rKKFSFH0oEfTiZzduIy1DKib5QLzhovmA9+def/emTXdTlFeqbP3y5KsyZdjDR2SlzjmFJgTaJF8lYQqVurDwf0WWlEn/D2IohVoSGDPJk5yy4JzQlZagmCOImrPxZXbf5dYnD+KstuhT5vco6ZUzf+xLZjIqLp9cmL/GnePW9qszB+PY; 4:fNILR4WmrW7QqEcp7AOGrzujI291pOO7B2CUsVsM+9nX/SDR4kLi43DdKTGv6v+a09UAIrc0oWjiSfV0VCAn/vULFqckFB1BeowRqjaf29nV0d4/gJ0Xq+cMcZG5qpNdo2BOtKMjbQx1l9vQlcXJBp34ip3HL868TOcAwh+UkeicfNUgoBWckhTyagbZ6l8UzTGNuL7jhDP8O9xLgnsZuyg6Bsgok2gDwgCGvqs1lIgu/iGpdTd8QtOA35JRF0KhUnJs9cpa5M4gGvtP3D76tqDjJoc7+tT8wdTzWjNkY5TMDlFVb3rQhJ6cSIjVDPaRAQAW07GUcQjLSr/Gg9KuEcx1DTZ38oZTsM95uRI127xIf+np0fU/CFEpTcYmeEI5
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR07MB1567;
X-MS-Office365-Filtering-Correlation-Id: 5b8321cf-5f63-4400-7a16-08d32befcaa3
X-Microsoft-Antispam-PRVS: <VI1PR07MB15678C2DD809CC4DCFEB2FABC6DF0@VI1PR07MB1567.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:VI1PR07MB1567; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB1567;
X-Forefront-PRVS: 084080FC15
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(377424004)(24454002)(377454003)(44716002)(47776003)(62236002)(23676002)(50466002)(116806002)(76176999)(50986999)(42186005)(77096005)(81816999)(81686999)(15975445007)(92566002)(61296003)(5001770100001)(5001960100002)(1096002)(33646002)(5008740100001)(87976001)(66066001)(19580405001)(230700001)(3846002)(6116002)(19580395003)(14496001)(189998001)(586003)(2906002)(4326007)(5004730100002)(44736004)(50226001)(86362001)(40100003)(122386002)(93886004)(74416001)(7059030)(7726001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB1567; H:pc6; FPR:; SPF:None; MLV:sfv; LANG:en;
X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1567;23:ZaA+UIXHBgeBXwRCL0CYA0GN9zD5UsiQL+m0GJBSJiRgr6GUC1QPX9llY2fdtOltLzImCH7TP/PVue12wRZY8b3qKMFfRB6fzRtycLHlCWkrDsT4ClliZpq6Ddtz+jPXSPCXH5QuCNGn5Q6oKK6razkEyVMk4xpRmGjKHauuvUrkP4Wre5qLRpDwTXLFyxPyjABBfH1+CBpG64rJwn75vRzJGPV7/qeetRaPqf15HzhQSuZr2A2dsGnOFZa4qsdxtv+/FwZeYJt91/whAanEJCfxc3opwJfp3tFBDQjK2BENcabeVDA8Yj35k4kiO7SST6Th1iSsxL5Ik5ZUMrVHYEaRAS+ERGvZcwoKI0ZmRMUThc7ZRQt39iETNIyZsuffYCR7H4D95UOiEzGCwmC0YHtIzanXRUpizHdw3eEYBP1XASUV3pTrogckLijewmbbpo/Ewfkf3rm8Jy6hInDOsgZV5CJx9jzGxS9xe1d5E2SNNrtEcVLfZGmgr1/nGm9P4Db+BHQvALKPWRsSCIu9yeY5hZOP/hgN5yS+bMjS9bFJONgOg1BxDXWKxjy8LdhBpoQhF456bZukRxYsfYs9FPsNB11RtVhTZfoEmLxEQbYzq5BTOIdH7WEVRx+wRSbTRZ2s9NGUdhtgNSy4pTrbernW4Frx3c0ZXD+17H3Tl2jdt8qawUJxn1TWM9XEvN72TJ4MwGP6tdBQXQqgTRATLFsmxecSDPupQvLNpGF6o5xCr/DMh+TA6gadGG3Y0dF8OZciB99ujVgSFOMx1KaTG7eTEijcVSeo1hLpppf+J0snPazYBksQzGRuhnWJCGkOMXSln8BJQaITu3x6DPC9ROsUXIzrpBExE37W+KeTwsj4Nq7YiJ87c/4jFQM0Fk3wMcgFHdKRZ0dQihcb6J8I4eODM23ylXqnQwgf2VTQBryUGcal1v3Cs8qB7pa4J/SS7MiqtVA+E6b5qzktKbtCZ9t/EnwT6zuoqR543G7FO3jXVeLZ18w+Qt6a/YpMi2nmPwj0h1+wIecp45QdF3P12kRUycJdHGT6zq7ZO6uie/eIsiLCcBa7A3Ur4LCp4KMAleGMDJLJQLp0C7MMGnTuAjRDbolo03ee/EGiNKDBnkkWfGqSPC16CLVZTnRXKJERZOBxrluYgsSZfu4nRyJcfG29yg7BstujJ6xVRF89ht0U3tQ2W2CiQupapbS3Z0UK
X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1567; 5:ouhJAExvB7OzMYpVysxsiBj6Pas7GgNg0hwviM/2Wkpsy/X98v53sm+3qGMweHUnqgaxPQnMeAk/AjXZRC2Dcy0Yd2ozei+Yt1bY0f7egOVZorEhWPP7s7LCnCa8J6YPFRzFjE67O/IEfBERflLz4g==; 24:JNw6Mb62WNCasRI4GPFQcTVg3waqP8gGbFMxT+FIEWchckzxsKZY6vR44mW0y0ek7tCWxKx7oxUj++rUZYlQ4CWVwsH/vZojbXjwinC1BMg=
SpamDiagnosticOutput: 1:23
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2016 16:42:08.2823 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1567
Archived-At: <http://mailarchive.ietf.org/arch/msg/ietf/eprRrIehVgCfT5ccYuYeZeaMmiY>
Cc: ietf@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2016 16:42:30 -0000

----- Original Message -----
From: "Julian Reschke" <julian.reschke@gmx.de>
To: "Carsten Bormann" <cabo@tzi.org>
Cc: <ietf@ietf.org>
Sent: Monday, February 01, 2016 11:03 AM
> On 2016-02-01 11:04, Carsten Bormann wrote:
> >>
<https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.
doc/json_jsonx.html>?
> >
> > This is for the transport of JSON data in XML documents, not for
> > converting XML data into a JSON representation.
>
> Ack. Good point.
>
> > JSON -> JSONx:
> >
> > { "Ticker" : "IBM" }
> > ->
> > <json:object>
> >    <json:string name="Ticker">IBM</json:string>
> > </json:object>
> >
> > (In any case, I'm wondering if you are citing this because you think
we
> > should be using it or just as a vivid demonstration of how futile
these
> > efforts are...)
>
> I'm not sure about the futile part; AFAIU, there are valid use cases
for
> the above.
>
> But XML->JSON of course is much more complex; if a generic
> transformation is needed the result will be extremely ugly.

I wonder if you are familiar with restconf, which is NETCONF over HTTP
with the YANG data in either XML (which is what NETCONF uses for its RPC
and data therein) or in JSON.  There have been a number of discussions
on how to do in JSON what has previously been done in XML and while
sometimes JSON makes it easier, other times JSON lacks the functionality
that has been used previously; I have followed (but not understood) the
discussions on JSON.  The I-D is currently in WG Last Call so before too
long, it will hit this list, whereupon its ugliness, or prettiness, will
be there for all to see.

Tom Petch

> Best regards, Julian