This example shows how easy it is, to convert the data from one format to other format. We can pass any xml data in the rest api call and get that converted to json format. Test test
Testing again test test
Have some XML data handy to convert to Json
-
Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this guide can be a great introduction. Your starting point should resemble
-
In the search dialog lookup "xml to json" service and select "XML to JSON" service, drag and drop it into the flow canvas. Connect the arrows automatically from start to the XML to JSON service icon. This inserts the 'XML to JSON' step in the flow. Hardcode the XML data which need to be converted to JSON.
-
Under XML to JSON service mapping map the input body to XML Data
-
We can configure send email if the converted data need to be sent over email to the respected audience. In the search dialog lookup "send an email" service and select "Send an Email" service, drag and drop it into the flow canvas.
5.Under Send an Email configuere the to address, cc, subject and map the body to Json data.