Skip to Content

Error while converting XML TO JSON using REST Receiver channel.

Dear SAP Experts,

I am trying to convert XML structure to JSON by enabling option "Convert XML Payload to JSON" in REST Receiver Channel.

In the XML file we are passing URL" https://gmail.com". whenconverting this XML to JSON structure we are getting the URL Like this "https:\/\/gmail.com".

Backward Slash adding for ever forward slash.Please help me how to remove this.

Regards,

R.Neelima

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 15, 2017 at 09:04 AM

    Hello R.Neelima,

    I have not tried the standard XML to JSON conversion but there also is an Adapter module for that - maybe try to use that:

    https://blogs.sap.com/2015/03/18/jsontransformbean-part-2-converting-xml-to-json-content/

    Best regards, Peter

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Peter,

      I tried converting the XML by using MODULE "FormatConversionBean".Unable to get Array Bracket.

      I am getting as below.

      {

      ---

      --

      }

      I need as below.

      [

      {

      ---

      ---

      }

      ]

      Thanks & Regards

      Neelima