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

Re: json to json transformation

Subject: Re: json to json transformation
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Mar 2019 12:33:18 -0000
Re:  json to json transformation
On 15.03.2019 13:10, Mukul Gandhi gandhi.mukul@xxxxxxxxx wrote:

The order of keys in above JSON output is not same as the input JSON. In the JSON, I wanted fName and lName pair to be replaced by the 'name' key, and wished that order of keys in JSON was preserved.

I think, with XPath 3.1 maps the ordering of keys has no relevance, and from that point of view your XPath 3.1 map solution above is fine.

It is true, that is a shortcoming of XPath 3.1 and XSLT 3 maps, the order items is not defined.

Current Thread


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.
First Name
Last Name
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.