I have a JSONObject
response like
{
"0:"{
"name": "name1",
"surname": "surname1",
"id": "22",
"motivations": []
},
"1:"{
"name": "name2",
"surname": "surname2",
"id": "23",
"motivations": []
},
"2:"{
"name": "name3",
"surname": "surname3",
"id": "24",
"motivations": []
},
"sign": "9e46b7d6b140b",
"last_call": 1446
}
I want to map it to the List<Person>
, but I cant do it before I erased
"0:","1:","2:" ,"sign":"9e46b7d6b140b","last_call":1446
.
Any idea how to map that in the model?