on 07-25-2017 4:29 AM
Hello gurus,
The receiver REST adapter adds up an escape character to the string after converting the xml data to JSON format. I also tried providing the value as string in the 'custom XML\JSON Conversion Rules table'. But the character is still getting added up. Could you please help.
string in XML: application/vnd.abc.remision_5.2+xml
string after conversion to JSON: application\/vnd.abc.remision_5.2+xml
Thanks,
Pankaj
Works as designed, I'm afraid https://launchpad.support.sap.com/#/notes/2482060 even if the jettison library supports at least omiting the forward slash escaping, see https://www.mvndoc.com/c/org.codehaus.jettison/jettison/org/codehaus/jettison/json/JSONArray.html#se...
Bummer that SAP just doesn't fork that darn library and makes a module parameter so we can omit escaping for forward slashes or even completely.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I, too do not have access to the note anymore. Might be some temp issue or SAP trying to hide from its guilt 😉
From the top of my mind the note was something in the line of "we use jettison library for the XML <=> JSON conversion" and esaping is works as designed.
I myself had some access to the endpoint system (being Jira server) and we worked around the issue by applying some logic to fix the escaping wihtin Jira after the API call.
You could also have a look at engswee.yeoh 's bean to "rule them all" --> https://blogs.sap.com/2015/03/25/formatconversionbean-one-bean-to-rule-them-all/
Cheers
Jens
is it creating any errors ? if not, use mapping functions to remove it.
Best,
Vibhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.