/*
if respond is array
respond = [ {"a": "a", "b" : [1,2] } ]
*/
JSONArray ja1 = new JSONArray(respond);
JSONObject jo= ja1.getJSONObject(0); // {"a": "a", "b" : [1,2] }
String a = jo.getString("a"); // a
JSONArray ja2 = jo.getJSONArray("b"); // [1,2]