SAP Knowledge Base Article - Preview

2521044 - CPI: XML to JSON Converter treats Integer as String


You are using CPI, and needs to conver XML to JSON using "XML to JSON converter".
The Integer in XML is converted as a String, while you expect it to be still an Integer.

For example,
Input XML: <root><value>123</value></root>
Result JSON: {"root":{"value":"123"}}
Expected JSON: {"root":{"value":123}}



  • SAP Cloud Platform Integration for process services


Cloud Integration all versions


XML, JSON, Converter, XML to JSON Converter, integer, string, number, quotation mark, script, restriction, SAP HANA Cloud Integration, SAP HCI, SAP CPI, SCPI, IFlow, Integration Flow, payload , KBA , LOD-HCI-PI-RT , Integration Runtime , Problem

About this page

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

Search for additional results

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