title: getting Json result in Android
body: <p>Json Problem :</p>
  
  <p>I have this formatted JSON</p>
  
  <pre><code> {
   "Table1":[
    {
       "TableName":"LoadDistributor",
       "Description":"Distributor ",
       "MandatoryFlag":"1",
       "Status":"",
       "Priority":"0"
    },
    {
       "TableName":"LoadPrice",
       "Description":"Price ",
       "MandatoryFlag":"1",
       "Status":"",
       "Priority":"0"
    },
    {
       "TableName":"LoadProduct",
       "Description":"Product ",
       "MandatoryFlag":"1",
       "Status":"",
       "Priority":"0"
    },
    {
       "TableName":"RD.AlternativeProductDetail",
       "Description":"AltProdutDetail",
       "MandatoryFlag":"0",
       "Status":"",
       "Priority":"0"
    },
    {
       "TableName":"XA.vwTown",
       "Description":"Town ",
       "MandatoryFlag":"1",
       "Status":"",
       "Priority":"0"
    }
  </code></pre>
  
  <p>]
  }</p>
  
  <p>Android Json Processing method is:</p>
  
  <pre><code>   public String[] getStringArrayResponseJson(SoapPrimitive node, ArrayList&lt;String&gt; strings) {
      try{
  
          String result = node.toString();
          JSONObject json = new JSONObject(result);
  
          // Parsing
          JSONArray nameArray = json.names();
          JSONArray valArray = json.toJSONArray(nameArray);
          Log.i("@@@" , "===="+  valArray.length());
          for (int i = 0; i &lt; valArray.length(); i++) {
              strings.add(valArray.getString(i));
          }
  
          json.put("sample key", "sample value");
          Log.i("REST", "&lt;jsonobject&gt;\n" + json.toString()
                  + "\n&lt;/jsonobject&gt;");
      }catch (JSONException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>My requirement is I want to get the TableName into string[] or list... How we can do this?</p>
  
  <p>Please help me what is the error in my json processing method:?</p>