Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How do I convert a JSON string to XML in ABAP

Hello All,

   I have a JSON string, which I get from my javascript. It is a complex JSON with nodes inside nodes.

I would like to create an XML from this JSON Object. And use this XML for further processing. I tried few things mentioned in SCN but did not work out properly. Could you please help me with this.

for ex. the JSON structure I get is

{

"is_model":

     {

          "t":"DD",

          "i":"Value for DD"

     },

"is_qty":

     {

          "t":"TX",

          "i":"2016

     },

"is_ctl":

     {

          "t":"DD",

          "i":"Single Apex"

     },

"is_ctr_qty":

     {

          "t":"TX",

          "i":"2200"

     }

}

Regards,

Former Member
Former Member replied

Hello All,

   Thanks for your reply, I got it done with the sXML Library . IF_SXML_READER

Regards,

Purayil.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question