From where do we get the JSON Snippet in JSON structure for consuming REST service

0
How do get the JSON snippet ?  
asked
2 answers
0

Hi Karthick, 

If you have API to consume it , definetely you will be able to get JSON from the API 

for example , I have public API which provides you the JSON 

https://jsonplaceholder.typicode.com/users

 

answered
0

The best way, is letting Mendix to the work for you:

  •  create a MessageDefinition
  • click Add, and select your entity
  • if need be tick the boxes for the specific attributes and/or associations
  • Save and close that popup

Now click button “Generate mapping(s)” and Mendix will create an import- and an export-mapping for you. Tadaah, you got your json(s).

 

Alternatively you can add OQL, pullrequest.zip which includes a export-to-json-function.

answered