Azure APIM json-to xml gives xml with BOM

I am having an issue with an Azure integration scenario where we are receiving a JSON message on Azure APIM from Azure datafactory and we are sending this using APIM in XML format to an external REST receiver a BOM is added. Question is how to remove this. Is there an APIM policy available for it?

Azure Datafactory
Pick up a XML file and we transmit it using copy to Azure APIM

DataFactory Pipeline

enter image description here

enter image description here

JSON source

Result (captured with requestbin)

XML output

APIM policy used to transform to XML

<json-to-xml apply="always" consider-accept-header="false" parse-date="false" namespace-separator=":" />

Read more here: Source link