FortiSOAR Discussions
doubleohseven
New Contributor II

Converting JSON to XML

Hello,

 

I have a use case where I'd like to take a CVE's JSON details, and convert certain fields to XML format. The reason for this would be to create custom vulnerability checks for Rapid7 InsightVM programmatically using the specified CVE. I can pull the CVE data using a connector, then I would need to convert the relevant fields to XML.

 

I see that there is a utility to convert XML to JSON, but does the reverse exist?

1 Solution
dspille
Staff
Staff

You can do this using a code snippet step in a playbook. Here is a sample playbook that converts json to xml

 

 

Dylan Spille

View solution in original post

2 REPLIES 2
dspille
Staff
Staff

You can do this using a code snippet step in a playbook. Here is a sample playbook that converts json to xml

 

 

Dylan Spille
doubleohseven

Thank you! I was wondering about using a code snippet as well. I'll test it out.

 

Appreciate your response.

 

Nelson