This activity allows you to convert XML data to JSON object.
flogo install github.com/project-flogo/contrib/activity/xml2json
Name | Type | Description |
---|---|---|
xmlData | string | The XML data to be converted |
Name | Type | Description |
---|---|---|
jsonObject | object | The JSON object |
The below example logs a message ‘test message’:
{
"id": "xml2json_activity",
"name": "XML2JSON Activity",
"activity": {
"ref": "github.com/project-flogo/contrib/activity/xml2json",
"input": {
"xmlData": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><hello>world</hello>"
}
}
}