Hello fellow coders
Can anybody tell me how can I define this type of array?
"locations": [
{"type": "loc", "locationId": 60},
{"type": "map",
"mapLocationId": 4594,
"locationText": "north pole",
"coordX": 08.930319,
"coordY": 75.730848,
"companyId": 4
},
{"type": "loc", "locationId": 55},
]
locations array can have 2 types of multiple objects
Cheers!