title: how to get Json objects from json array and use them with model class
body: <p>I want to link my received json data to my pojo class using gson library.I used volley library to receive the data.What should i do so that whenever i call getter methods from my pojo class then i get the received json data.</p>
  
  <p>My Json data is in this format.  </p>
  
  <pre><code>{
   "vichList":[ {
              id=1,
              username="abc....},
              {....},
              ]
  }
  </code></pre>
  
  <p>I want to get this json data into my pojo class.</p>
  
  <p>Vich.java</p>
  
  <pre><code>public class GetfeedResponse {
  private List&lt;Vich&gt; vichList;
  
  public List&lt;Vich&gt; getVichList() {
      return vichList;
  }
  
  public void setVichList(List&lt;Vich&gt; vichList) {
      this.vichList = vichList;
  }
  }
  </code></pre>
  
  <p>Vich.java</p>
  
  <pre><code>public class Vich {
  private int id;
  private String username;
  private String full_name;
  private String createdAt;
  private int vich_id;
  private String vich_content;
  private String city;
  private int like_count;
  
  public int getId() {
      return id;
  }
  
  public void setId(int id) {
      this.id = id;
  }
  
  public String getUsername() {
      return username;
  }
  
  public void setUsername(String username) {
      this.username = username;
  }
  
  public String getFull_name() {
      return full_name;
  }
  
  public void setFull_name(String full_name) {
      this.full_name = full_name;
  }
  
  public String getCreatedAt() {
      return createdAt;
  }
  
  public void setCreatedAt(String createdAt) {
      this.createdAt = createdAt;
  }
  
  public int getVich_id() {
      return vich_id;
  }
  
  public void setVich_id(int vich_id) {
      this.vich_id = vich_id;
  }
  
  public String getVich_content() {
      return vich_content;
  }
  
  public void setVich_content(String vich_content) {
      this.vich_content = vich_content;
  }
  
  public String getCity() {
      return city;
  }
  
  public void setCity(String city) {
      this.city = city;
  }
  
  public int getLike_count() {
      return like_count;
  }
  
  public void setLike_count(int like_count) {
      this.like_count = like_count;
  }
  }
  </code></pre>
  
  <p>Here i am getting the json response using volley library.</p>
  
  <pre><code>httpUtil.getrequest(url,this,new VolleyCallback(){
  
          @Override
          public void onSuccess(String result){
  
              GetfeedResponse getfeedResponse = new GetfeedResponse();
             // for(Vich vich : getfeedResponse.getVichList()){
             // }
  
              Log.d("Response Result:",result);
          }
  </code></pre>
  
  <p>How can i get objects from json array and use them with the help of pojo class?</p>