Skip to Content
0

SAP HCI XML to JSON conversion

Mar 03 at 10:13 PM

123

avatar image
Former Member

Hi All,

I am trying to convert incoming message body from XML to JSON format in my inflow using the standard message converter step XML to JSON) provided by HCI .

The problem is it does convert to JSON but I the converter is not aware of XSD for example if there is an array in XSD it’s not adding an empty array of no elements of that array is found.

Can you please guide me if I can use groovy / JavaScript or XSLT which will convert an XML to JSON with XSD awareness. Please note I am not very good at groovy any inputs here will be appreciated.

Thanks

Krishna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers