Skip to Content
0

Error while converting XML TO JSON using REST Receiver channel.

Sep 15, 2017 at 05:17 AM

55

avatar image

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

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

1 Answer

Best Answer
Peter Wallner Sep 15, 2017 at 09:04 AM
0

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

Show 1 Share
10 |10000 characters needed characters left 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


0