简体   繁体   中英

Mule Dataweave - Converting XML to JSON List with Multiple Object types

I have to convert a XML payload to JSON. The challenge here is the order of XML should not be changed while we convert it into JSON list of multiple type of objects ( Single JSON list has multiple object types).

The JSON will output in the order that you specify in your Dataweave transform. Just make sure that your output is in the order that you want and you should be fine.

First use https://codebeautify.org/xmltojson to convert your xml to json and save it in json format. now use this file as metadata. your xml will be convert same to json.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM