my json string is
String RESPONSE = " { "Table": [] } ";
and I use
JSONObject jsonObj = new JSONObject(RESPONSE);
JSONArray contacts = jsonObj.getJSONArray("Table");
Therefore, contacts = [] I mean empty. How can I control that array is empty. After this controller I use this command
JSONObject c = contacts.getJSONObject(0);
Of course is not empty :)