Dynamic Json

0
Hi Experts,   I want to integrate a post API in Mendix. The response will be JSON Structure. But the JSON Structure will be a Dynamic of every API Call and doesn't relate to each other.   I need your's assist on this Integration
asked
2 answers
3

Hi Parveen,

To handle this kind of situation, you can write a Java action, that handles this JSON conversion.

What you can do is, you can create a POJO from the dynamic JSON, and then create a new JSON ( which  you want ) and then using java action and using java JSON or Gson library you  can convert the dynamic JSON into a static one.

 

Let me know, if you have any issues,

Hope it helps!

Rishabh

(Resilient It Services) 

answered
0

Hello Praveen,

 

This module can be an option for your business case:

https://marketplace.mendix.com/link/component/113010

 

It allows you to create dynamic JSON string.

 

Good luck!

 

Thijs

answered