title: google-httpclient JSON definition
body: <p>When the JSON is:</p>
  
  
  
  <pre class="lang-java prettyprint-override"><code>{
       "result":200,
       "data", "my data"
  }
  </code></pre>
  
  <p>The definition of the class can be:</p>
  
  <pre class="lang-java prettyprint-override"><code>class HttpResult
  {
      @Key
      public int result;
  
      @Key
       public String data;
  
  }
  </code></pre>
  
  <p>When the JSON root is a array and has no Key:</p>
  
  <pre class="lang-java prettyprint-override"><code>[
      {
          "result:200",
          "data":"data1"
      },
      {
          "result":404,
          "data":"data2"
      }
  ]
  </code></pre>
  
  <p>Then the definition of the class is?</p>