Answer the question
In order to leave comments, you need to log in
How to parse json through retrofit2 with an array type structure?
How to parse json via retrofit with an array type structure? If the size is unknown
[
{"title_ru":"Двойной форсаж","kinopoisk_id":"323"},
{"title_ru":"Экс-любовник","kinopoisk_id":"171822"}
]
public class ModelSearch {
@SerializedName("title_ru")
private String title_ru;
@SerializedName("kinopoisk_id")
private String kinopoisk_id;
public String getTitle() {
return title_ru;
}
public void setTitle(String title_ru) {
this.title_ru = title_ru;
}
public String getKP() {
return kinopoisk_id;
}
public void setKP(String kinopoisk_id) {
this.kinopoisk_id = kinopoisk_id;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question