I would like to unmarshal a list of players from this nested json using retrofit 2 and Gson in android:
{
"api": {
"status": 200,
"message": "GET players/playerId/44",
"results": 1,
"filters": [
...
],
"players": [
{
"firstName": "Kent",
"lastName": "Bazemore",
"teamId": "29",
"yearsPro": "7",
"collegeName": "Old Dominion",
"leagues": {
"standard": {
"jersey": "24",
"active": "1",
"pos": "G-F"
}
}
}
]
}
}
Can anyone help?