Guys recently i switched to Retrofit from volley. there is a Pojo file which is converted from json.
public class JobModel {
private int status;
private List<JobsBean> jobs;
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public List<JobsBean> getJobs() {
return jobs;
}
public void setJobs(List<JobsBean> jobs) {
this.jobs = jobs;
}
public static class JobsBean {
private String job_city;
public String getJob_city() {
return job_city;
}
}
}
but i don't know how to use this pojo file to extract the job_city from JobsBean class
As you can see there is an JsonArray jobs which is converted to
List<JobsBean>
having JsonObjects and the
JobsBean class
is containing all the job_city name. How can i retrieve these job_city name in an array. so that i can use them in my arrayadapter.