Skip to Content
0
Nov 01, 2018 at 01:30 PM

PI Rest Sender adapter, how to omit escape characters in payload

2552 Views Last edit Nov 01, 2018 at 07:05 PM 2 rev

Hello Experts,

In the payload, I have character (forward slash) "/", but while converting it from XML to JSON, the sender REST adapter is appending "\" (backward slash) to it.

Need help in eliminating the "\" (backward slash) from the resulting JSON format.

XML format

<ServiceType>CPINPUSHREQ</ServiceType>
<Signature>wcIc4ooVKxfBGT0tpZJMAkIc2xEKYDrgNXvvJheeLXC2inadHGpIVQQh8N0uj3b/uEwQowOD4rIeb3zHn4in0amePt73TziUTuzeZyHO+3J5ADDs8AlJ/oYpYW5IfgRopejWSshCBXsob+7WkS1D3GLFg2L7VKumf4xz5cjTDR3vTMA7QPk6ogoe5kX0w5baJtprzNUR2K1/5P6YmWSQBUVaYOlewviAbw4BCvhCLNn67WhskPEBzRc3vqlkPK/cdX+8gsgTqOLWoBMUvaFCNwewpOSZ4gtdGwUtjx9JjWKHV40lWA6wwmay/9USx+cRgfUiID9P8Y6F2iLc7tCt6g==</Signature>

resulting JSON format

{"System":"SAPTEST","ServiceType":"CPINPUSHREQ","Signature":"wcIc4ooVKxfBGT0tpZJMAkIc2xEKYDrgNXvvJheeLXC2inadHGpIVQQh8N0uj3b\/uEwQowOD4rIeb3zHn4in0amePt73TziUTuzeZyHO+3J5ADDs8AlJ\/oYpYW5IfgRopejWSshCBXsob+7WkS1D3GLFg2L7VKumf4xz5cjTDR3vTMA7QPk6ogoe5kX0w5baJtprzNUR2K1\/5P6YmWSQBUVaYOlewviAbw4BCvhCLNn67WhskPEBzRc3vqlkPK\/cdX+8gsgTqOLWoBMUvaFCNwewpOSZ4gtdGwUtjx9JjWKHV40lWA6wwmay\/9USx+cRgfUiID9P8Y6F2iLc7tCt6g==","Payload":{"CPIN":"10341234567890","ExpDt":"20170720","TotalAmt":"200","PayerName":"abc","ChallanDtls":[{"AcntID":"101001001","Amount":"200","AdminZone":"10"},{"AcntID":"101001001","Amount":"200","AdminZone":"10"}]}}

Regards,

Sushant