JSON to XML :- I want to convert the JSON object into XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 10:53 PM
I have an requirement of converting the JSON object in XML payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 11:05 PM
Hi
there are many approaches available. One of them: https://github.com/jackrvaughan/json-to-xml
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 11:06 PM
Hi,
there is no direct method for this.
but you can check this and enhance it in ServiceNow
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 11:29 PM
Hi,
Do you have requirement to convert a specific JSON Object to specific XML schema? You can create a script similar to what mentioned by others. Sample script shared will not solve your exact requirement, you need to rewrite the code to make it work for you. If you are not able to create script based on your requirement then share the input JSON and expected output. I can help you to convert.
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2022 01:22 AM
Hi folks,
I have a requirement wherein the payload would return the business entity in xml and the remaining options in json format ... how to achieve that?