Convert JSON to XML and vice versa | Community
Skip to main content
Level 2
May 12, 2023
Solved

Convert JSON to XML and vice versa

  • May 12, 2023
  • 1 reply
  • 1593 views

Team,

 

We have a requirement to convert a JSON to XML programmatically. Can we achieve this through a JS workflow activity with/without any libraries ? Please let me know.

 

TIA!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShashankNigam02

Yes, it is possible in JS. You may use this solution: https://stackoverflow.com/questions/48788722/json-to-xml-using-javascript

In Campaign, you can create a JS file having required function and use that in the workflow JS activity via loadLibrary(). Hope this helps!

1 reply

ShashankNigam02
Adobe Employee
ShashankNigam02Adobe EmployeeAccepted solution
Adobe Employee
May 14, 2023

Yes, it is possible in JS. You may use this solution: https://stackoverflow.com/questions/48788722/json-to-xml-using-javascript

In Campaign, you can create a JS file having required function and use that in the workflow JS activity via loadLibrary(). Hope this helps!