cancel
Showing results for 
Search instead for 
Did you mean: 

REST Receiver adapter XML to JSON conventer Problems

former_member521231
Discoverer

Hi All,

I have configured Rest receiver adapter. In my payload there is a field URL when i convert XML to JSON the XML is getting converted to JSON format but an additional character ('\' - backslash) is getting added in the JSON.

Below is my XML

<URL>https://xxxxxxxxx/xxxxxxxxxxxx/xxxxxxx/xxxxxxxx</URL>

I am expecting below data.

{"URL":"https://xxxxxxxxx/xxxxxxxxxxxx/xxxxxxx/xxxxxxxx"}

My Actual converted payload looks like this.

{"URL":"https:\/\/xxxxxxxxx\/xxxxxxxxxxxx\/xxxxxxx\/xxxxxxxx"}

Could someone help me on this.

Thanks,

Aathif

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor

Mohammed ,

This is the standard behavior of Jettison library used by rest adapter to convert XML to JSON this can't be avoided. But when converting this bask to XML it won't be having those characters talk to your third party guys if this is fine with them ?

Thanks,

Manoj

Answers (0)