All our REST services work with JSON structure definitions and I'm trying something new that might improve our domain model. Instead of multiple associations, perhaps inheritance might be key. But I'm having a realy hard time exporting/importing inheritance with JSON as my definition. Who can help me out? Let's say we have the below displayed domain model. How would my JSON Export and Import (if different) be, it that can work at all? Note: Enum 'ContactType' consists of Address, Email and Phone (the possible children).
I would suggest to check the academy training for the domain model. There are some explanation and suggestion about what would make sense to use inheritance vs associations. Maybe this will help to improve your data modell not only in focus of data modelling, also in focus how Mendix handle data structures.