SAP Knowledge Base Article - Preview

2482060 - Additional escape character "\" when converting XML to JSON

Symptom

You configure a scenario where the payload includes some special characters like forward slash "/" and backslash "\" in the XML payload. When converting XML to JSON in REST adapter, you find that one more backslash "\" is appended before such special characters after conversion. For example,

The input field in XML: 01/01/2021 => The output field in JSON: 01\/01\/2021
The input field in XML: xxx/nxx => The output field in JSON: xxx//nxx


Read more...

Environment

  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

backslash, backward slash, forward slash, XML to JSON, rest sender, date format, escape symbol, Rest Adapter, JSON, escape character, escape, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI , KBA , BC-XI-CON-RST , Rest Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.