title: creating a class for json response
body: <p>I am trying following code downloaded from net. Which is about reading the total search result of google search page.</p>
  
  <pre><code>import com.google.gson.Gson;
  import java.awt.Desktop;
  import java.io.File;
  import java.io.IOException;
  import java.io.InputStreamReader;
  import java.io.Reader;
  import java.net.URL;
  import java.net.URLEncoder;
  
  
      public class Test {
  
          public static void main(String[] args) throws Exception {
              String google = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=";
              String search = "my";
              String charset = "UTF-8";
  
              URL url = new URL(google + URLEncoder.encode(search, charset));
              System.out.println(google + URLEncoder.encode(search, charset));
              Reader reader = new InputStreamReader(url.openStream(), charset);
              GoogleResults results = new Gson().fromJson(reader, GoogleResults.class);
  
  
              System.out.println(results.getResponseData().getResults().size());
  
          }
      }
  </code></pre>
  
  <p>Search Result is</p>
  
  <pre><code>"queries": {
    "nextPage": [
     {
      "title": "Google Custom Search - flowers",
      "totalResults": 10300000,
      "searchTerms": "flowers",
      "count": 10,
      "startIndex": 11,
      "inputEncoding": "utf8",
      "outputEncoding": "utf8",
      "cx": "013036536707430787589:_pqjad5hr1a"
     }
    ],
  </code></pre>
  
  <p>I want to create class `GoogleResults' for above response</p>