Skip to Content
0

How to avoid escape character \ in a string element

Mar 13, 2017 at 08:44 AM

51

avatar image

Hi,all.

I used a REST adapter to convert XML data format to JSON.The interface worked fine except one problem.One element values "xxxx\nxx" in the sender system turned to "xxxx\\nxx" when the target system got it.

The target system don't agree to modify the source data received from the source system.How can i avoid the automatic ESC?

Appreciate you help.

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member May 08, 2017 at 08:47 PM
0

I am also facing same issue. Do you have solution in place for this.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Ramakrishna,

Did you find any solution for this? I too am facing similar issue where a '\' gets added along with '/'.

Thanks,

Pankaj

0
avatar image
Former Member May 09, 2017 at 09:52 AM
0

Hi,

Can you use Custom XML/JSON conversion table in the receiver CC and mention the field as String there.

Thanks,
Apu

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 25, 2017 at 03:14 AM
0

Hi Zhu,

Did you find any solution for this? I too am facing similar issue where a '\' gets added along with '/'.

Thanks,

Pankaj

Share
10 |10000 characters needed characters left characters exceeded