Rest Service json response with json array

0
My response is something like this: { "data": [ { "building": "xx", "roomNumber": "115", "room": "1-115", "urls": [ "http://.../.../1.jpg", "http://.../.../2.jpg" ], "capacity": "23", "area": "924", "roomDarkening": "Good", "ac": "Yes", "chalkboard": "20' FIXED BOARD", "screen": "8'", "mitNetDrop": "Yes", "av": "LCD VIDEO PROJECTOR", "furnitureType": "Fixed Modern Tables & Chairs", "miscComments": [ "CARPET", "23 DELL OPTIPLEX GX 620 WORKSTATIONS", "PRINTER", "TIERED SEATING", "LCD VIDEO PROJECTOR(1400 X 1050)", "OVERHEAD PROJECTOR", "KEYPAD ENTRY", "ELECTRONIC CLASSROOM", "WIRELESS NETWORK" ] }, { "building": "y", "roomNumber": "132", "room": "1-132", "urls": [ "http://.../.../1.jpg", "http://.../.../2.jpg" ], "capacity": "20", "area": "468", "roomDarkening": "Good", "ac": "Yes", "chalkboard": "9'(2) + 5'(4) SLIDING BOARDS", "screen": "xx'", "mitNetDrop": "Yes", "av": "LCD VIDEO PROJECTOR", "furnitureType": "Modern Tables & Chairs", "miscComments": [ "TILE FLOOR", "LCD VIDEO PROJECTOR(1024 X 768)", "VCR", "CD/DVD PLAYER", "OVERHEAD PROJECTOR", "CABLE", "WIRELESS NETWORK" ] } ] } How do I design the domain model for this response, I am using the rest service get, I am looking for the mapping for the json array like urls": [ "http://.../.../1.jpg", "http://.../.../2.jpg" ] or "miscComments": [ "TILE FLOOR", "LCD VIDEO PROJECTOR(1024 X 768)", "VCR", "CD/DVD PLAYER", "OVERHEAD PROJECTOR", "CABLE", "WIRELESS NETWORK" ]
asked
3 answers
0

There is an example how you should structure your domain module in the documentation:

https://github.com/mendix/RestServices

answered
0

See the deserialization section, item 5 in the docs.

answered
0

Thanks, but how do I show the response values coming back from rest service api call in a template grid or grid view?

answered