JSON to XML Converter | SAP Community

Hi,

I am using JSON to XML Converter for the sample JSON payload as below which contains spaces, special characters like @ , – etc. The standard converter is not happy and produces an error as

The JSON member name “Organisation – Hierarchy” cannot be converted to an XML element name or attribute name, because it contains invalid XML name characters. Instead of using the JSON-to-XML Converter, use the Message Mapping to convert the JSON document.

{

“result”: {

“Organisation – Hierarchy”: [

“@Country”: “some value”,

“Is a part of (IT)”: “No”

]

}

}

I have read about the limitations of the converter and about “..use the Message Mapping to convert the JSON document”. Is there any standard way of handling such documents. Please advise

Best Regards

Read more here: Source link