title: JSON deserialization with Gson
body: <p>This is my JSON data:</p>
  
  <pre><code>{
    "boards": [
      {
          "board": "3",
          "title": "3DCG",
          "ws_board": 1,
          "per_page": 15,
          "pages": 11
      },
      {
          "board": "a",
          "title": "Anime &amp; Manga",
          "ws_board": 1,
          "per_page": 15,
          "pages": 11
      },
      {
          "board": "adv",
          "title": "Advice",
          "ws_board": 1,
          "per_page": 15,
          "pages": 11
      },
      ...
    ]
  }
  </code></pre>
  
  <p>This is my code for deserialization:</p>
  
  <pre><code>JSONObject json = readJsonFromUrl("http://api.4chan.org/boards.json");
  String jsonBoards = json.toString();
  Gson gson = new Gson();
  Map&lt;String, Object&gt; map = new HashMap&lt;String,Object&gt;();
  map = (Map&lt;String,Object&gt;) gson.fromJson(jsonBoards, map.getClass());
  </code></pre>
  
  <p>But it doesn't get the job done. I need a way to get the boards name, title, and all the that information for each board. When I use <code>map.get()</code>; the key is "boards" but I want a map of every board and title and so on.</p>