2521044 - CPI: XML to JSON Converter treats Integer as String | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

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

Symptom

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}}


Read more...

Environment

  • SAP Cloud Platform Integration for process services

Product

SAP Cloud Platform Integration for process services all versions

Keywords

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 ONE Support launchpad (Login required).

Search for additional results

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