title: Android - how to read subarray values from JSON depends on the selected item
body: <p>I have a JOSN file with following structure </p>
  
  <pre><code>[
      {
          "category" : "Category - 1",
          "table":[
              {
                  "id" : 1,
                  "title" : "Sample Title 1"
              },
              {
                  "id" : 2,
                  "title" : "Sample Title 2"
              },
              {
                  "id" : 3,
                  "title" : "Sample Title 3"
              }
          ]
      },
      {
          "category": "Category - 2",
          "table":[
              {
                  "id" : 1,
                  "title" : "Sample Title 1"
              },
              {
                  "id" : 2,
                  "title" : "Sample Title 2"
              },
              {
                  "id" : 3,
                  "title" : "Sample Title 3"
              }
          ]
      }
  ]
  </code></pre>
  
  <p>First I have load all "category" values to a listview such as "Category - 1","Category - 2".
  When I select "Category - 1" item from listview, I want to load/read items only from "Category - 1" table and when I select "Category - 2" item from the listview, I want to load/read the items only from "Category - 2" table. </p>
  
  <p>Please let me know how to read the table field values.</p>