cancel
Showing results for 
Search instead for 
Did you mean: 

Backward slash inserted ahead of forward slash in Rest Receiver adapter

0 Kudos

Hi Experts,

We are having a Proxy to Rest Scenario. While receiver Rest adapter converting XML into JSON we are getting a backward slash ahead of the forward slash. and We are getting error "Invalid Json Content".

Could you Please help us with some pointers on this.

Thanks & Regards,

Pragyesh.

former_member607993
Contributor
0 Kudos

Hello pragyesh.goyal

Could you example it and is Backward slash ahead of the forward slash from the proxy xml? Did you try to remove at mapping itself before converting to json.

Accepted Solutions (0)

Answers (1)

Answers (1)

JaySchwendemann
Active Contributor
0 Kudos

Yeah, this is a currently a non changeable setting of the "Jettison" java library SAP uses for JSON conversion within the SAP adapter: https://github.com/jettison-json/jettison / https://launchpad.support.sap.com/#/notes/2482060 (please note that by skimming over the source code of jettison, I belive it IS a changeable setting there, but SAP choses to not make this switch available to PI caller (e.g. via module parameter)

I already raised an incident at SAP for that but to no avail. But please do so, also, little stroke fell big oaks, you know.

JaySchwendemann
Active Contributor
0 Kudos

Yikes, I mesread forward slash with backward slash. I myself had a problem with escaped hence doubled backslashes "\\".

Anyways, Jettison also has some forwardslash escaping within this code so depending on SAP's implementation also forward slashes might be escaped?

taranpreet85
Explorer
0 Kudos
Any news on this, I am getting same issue in SAP PO7.5