AnsweredAssumed Answered

How to convert JSON Array element to recurring XML tags

Question asked by SIDDHARTHJAISWAL on Oct 26, 2016
Latest reply on Oct 26, 2016 by dasjo02

Hi,

 

 I want to convert following JSON to XML:

 

Input JSON

=====

{
"services" : [
"DIGITIZATION","ENCRYPTION","DECRYPTION"
],

}

 

Required outpu XML Format

===============

<services>

<service>DIGITIZATION</service>

<service>ENCRYPTION</service>

<service>DECRYPTION</service>

</services>

 

Please note that numbe of element in JSON array may vary and accordingly number of recurring tags (<service>) need to be formed in output XML structure. Not finding a way to do it. Please help.

 

Thanks,

Siddharth

Outcomes