on 07-11-2018 3:39 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.