Using Embedded Python is quite more simple
Method XML2JSON(iXml As %String) [ Language = python ]
{
import xmltodict, json
#; print(iXml)
obj = xmltodict.parse(iXml)
return(json.dumps(obj))
}Just need install
.\irispip.exe install xmltodict
- Log in to post comments