С моим приложением у меня есть следующий ответ JSON
{
"status_code": 1000,
"data": [
"6b456880-629a-11e9-94e5-15f45eea94be",
1101
],
"message": "Verified"
}
Я использую Retrofit, и мой объект ответа
public class basicRes {
@SerializedName("status_code")
int status_code;
@SerializedName("data")
userInfo data;
@SerializedName("message")
String message;
public int getStatus_code() {
return status_code;
}
public userInfo getData() {
return data;
}
public String getMessage() {
return message;
}
public class userInfo{
String user_id;
int province;
public String getUser_id() {
return user_id;
}
public int getProvince() {
return province;
}
}
Но я получаю следующую ошибку
Ожидаемый BEGIN_OBJECT, но был BEGIN_ARRAY в строке 1 столбца 29 путь $ .data
Любая помощь будет высоко ценится