on ‎2019 Feb 01 3:28 AM
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!!
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.