title: Parsing JSON via Java - Array with key->value format
body: <p>I've a problem using gson (JSon Java library from Google).</p>
  
  <p>I've to parse a result like this:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Server: nginx
  Date: Fri, 28 Oct 2000 16:46:01 GMT
  Content-Type: text/plain
  Connection: keep-alive
  Content-Length: 217
  
  {
    "key_1":"value_1",
    "key_2":"value_2",
    "key_3": [
      {
        "key_3_1":"value_3_1",
        "key_3_2":0,
        "key_3_3":1
      }
    ]
  }
  </code></pre>
  
  <p>I've written this class:</p>
  
  <pre><code>import java.util.List;
  
  public class ObjectClass {
      private String key_1;
      private String key_2;
      private List&lt;SubArray&gt; key_3;
  
      public static class SubArray {
          private String key_3_1;
          private boolean key_3_2;
          private boolean key_3_3;
      }
  
      public void printList() {
          System.out.println("Size: " + key_3.size());
      }
  }
  </code></pre>
  
  <p>and into MainClass I have:</p>
  
  <pre><code>Gson gson = new Gson();
  ObjectClass obj = gson.fromJson(br, ObjectClass.class);
  </code></pre>
  
  <p>where br it's a buffered reader that contains buffer of requested web page.
  Parsing of key_1 and key_2 works fine but parsing of key_3 downs' work.
  Have you a suggestion?</p>
  
  <p>Thanks!</p>