title: Gson deserialisation returns null
body: <p>I have a problem on converting JSON string to object in Android. Here are the JSON structure and Java classes:</p>
  
  <p>JSON:</p>
  
  <pre><code>{
  "code":"SUCCEED",
  "message":"",
  "result":{
      "ccahUserId": 111,
      "ccahUserName":"your_name",
      "userFirstName":"your_first_name",
      "userLastName":"your_last_name",
  
      //others
  }
  </code></pre>
  
  <p>Java classes:</p>
  
  <pre><code>public class Result&lt;T&gt;{
     public String code;
     public String message;
     public T result;   
  }
  
  public class DeviceSetting 
  {
      public long ccahUserId;
      public String ccahUserName;
      public String userFirstName;
      public String userLastName;
      //other members
  
  }
  </code></pre>
  
  <p>Activity:</p>
  
  <pre><code>Gson gson = new Gson();
  Result&lt;DeviceSetting&gt; setting = gson.fromJson(result, Result&lt;DeviceSetting&gt;.class);
  </code></pre>
  
  <p>When I deserialise the JSON string, code and message field were good but result field is null.
  I am not familiar with Gson yet, so please help how to fix this problem?</p>
  
  <p>Thanks in advance.</p>