SAP Knowledge Base Article - Preview

2521044 - [Cloud Integration] XML to JSON Converter treats Integer as String

Symptom

While converting XML to JSON using "XML to JSON converter" in Cloud Integration (former CPI), 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}}

Notice the difference: String (like "123") is embraced by double quotes, while Integer (like 123) is not.


Read more...

Environment

  • Cloud Integration
  • SAP Integration Suite
  • SAP Business Technology Platform

Product

Cloud Integration all versions ; SAP Integration Suite all versions

Keywords

XML, JSON, Converter, XML to JSON Converter, integer, string, number, quotation mark, script, restriction, Cloud Integration, SAP Integration Suite, CPI, SAP HANA Cloud Integration, SAP HCI, SAP CPI, SCPI, IFlow, Integration Flow, payload , KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , How To

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.