cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Java Mapping - Convert Xml To Json - With Array

mlmendes
Participant
0 Likes
5,838

Hi Gurus!!!

I'm having problems with describe a java code to convert Xml to Json.

i had saw any codes in blogs, but all this codes has problem with Array.

this is my goal:

but my java code is generating this Json:

Someone, can help me with any idea how can I create this code correctly? I'll Appreciate it!!

View Entire Topic
Former Member
0 Likes

Hi,

Although this is an old question, yet would like to answer it.

To achieve the required JSON format you have 2 alternatives:

1) Install a custom adapter and use it on the Rest receiver channel as mentioned here.

2) Use a custom Java mapping to convert the XML in the desired JSON structure as mentioned here.

Regards,

Kiran Roy