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

How do get the JSON snippet ?  
2 answers

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



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, which includes a export-to-json-function.