0
votes

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).

2
Be precise. Post sample input and output.AnupamBhusari
Please also post what you've tried so far and the results.jerney

2 Answers

0
votes

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.

0
votes

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.