cancel
Showing results for 
Search instead for 
Did you mean: 

Error while converting XML TO JSON using REST Receiver channel.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

peter_wallner2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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


Answers (0)