[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JSON to XML using XSLT 3.0 representation

Subject: Re: JSON to XML using XSLT 3.0 representation
From: "Martynas Jusevičius martynas@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 May 2019 13:51:06 -0000
Re:  JSON to XML using XSLT 3.0 representation
JSON2XML conveter now available as a Docker image atomgraph/json2xml

Example:

    cat city-distances.json | docker run -i -a stdin -a stdout -a
stderr atomgraph/json2xml > city-distances.xml

https://hub.docker.com/r/atomgraph/json2xml/

On Wed, Mar 27, 2019 at 6:58 AM Mukul Gandhi gandhi.mukul@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi Martynas,
>     Looks like nice work. I'll be waiting for releases (currently it shows 0
releases), to try.
>
> On Wed, Mar 27, 2019 at 4:25 AM Martynas JuseviD
ius martynas@xxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Hi all,
>>
>> I wanted to share a small utility I've created for our XML pipeline:
>> https://github.com/AtomGraph/JSON2XML
>>
>> It is a streaming JSON to XML converter. It reads any JSON data and
>> produces XML Representation of JSON specified in XSLT 3.0 [1].
>>
>> JSON2XML enables JSON transformation with XSLT even without having an
>> XSLT 3.0 processor. You can simply pre-process the data by having
>> JSON2XML before the transformation, and pipeline it into an XSLT 2.0
>> stylesheet, for example. That way your stylesheet stays forward
>> compatible with XSLT 3.0, as the XML representation is exactly the
>> same.
>>
>> Admittedly I haven't done much testing, but I'm going to put into use
>> next month. The sample from the specification works :) The conversion
>> code is quite straightforward.
>>
>> Also planning to create a Docker container out of it.
>>
>> Feedback and pull requests are welcome.
>>
>> [1] https://www.w3.org/TR/xslt-30/#json-to-xml-mapping
>>
>> Martynas
>> atomgraph.com
>
>
>
>
>
> --
> Regards,
> Mukul Gandhi
> XSL-List info and archive
> EasyUnsubscribe (by email)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.