title: Parsing JSon Data using java (google-gson)
body: <p>Trying to learn how to use JSON and parse the json data.i am using <code>google-gson</code> API to parse my json data.</p>
  
  <p>i am getting my JSON data in the following format</p>
  
  <pre><code>{"guid":{"uri":"http://social.yahooapis.com/v1/me/guid","value":"123456789"}}
  </code></pre>
  
  <p>and here is my parsing code using <code>google-gson</code></p>
  
  <pre><code>Gson gson=new Gson();
  MyGuid myGuid=new MyGuid();
  myGuid=gson.fromJson(response.getBody(), MyGuid.class);
  
  public class MyGuid {
  
  public MyGuid() {
  
  }
  
  private String value;
  
  public String getValue() {
      return value;
  }
  
  public void setValue(String value) {
      this.value = value;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>but i am getting the value of guid as null.
  I know i am doing wrong but being new to JSON format is what making me more confused.</p>
  
  <p>Any help in this regard will be helpful.</p>