Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Double slash in output when using xml-to-json policy

We are using xml to json policy. There is one field in the output which has a single slash in the data.

But the apigee is returning double slash for that field as below:

 

 "networkId": "ABC\\JACK09",

The actual data is

 

 "networkId": "ABC\JACK09",
 
Below is the policy code
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XMLToJSON continueOnError="false" enabled="true" name="XML-to-JSON-Formatoutput">
<DisplayName>XML to JSON-Formatoutput</DisplayName>
<Properties/>
<Format>xml.com</Format>
<OutputVariable>response</OutputVariable>
<Source>response</Source>
</XMLToJSON>

 

0 1 1,117
1 REPLY 1