Export domain model entity to JSON - Mendix Forum

Export domain model entity to JSON

11

When you’re setting up webservices, one of the options is to use a JSON snippet as Schema source. It is my preferred method of source, since I find it easier to work with than a message definition. However, there’s no easy method to generate the initial JSON structure. There are some workarounds, but currently the easiest is to just type it out.

It would be convenient to have a right click option in a domain model ‘Export as JSON’, which would export the entity to a JSON format including its associations. You would then only have to trim the associations you don’t need and you’ve got your complete JSON. Or even better, the Export as JSON opens a popup window where you can select which associated entities you want to include in the JSON structure.

asked
1 answers

Yes, this would be handy indeed! +1 from me

 

Created