can some parse the json encode response from php into java arraylist. My string is
[{"Link_Id":"811"},{"Link_Id":"1389"},{"Link_Id":"6190"}]
what I tried is
static JSONObject jObj = null;
JSONArray link_Ids = null;
ArrayList<Integer> ids;
jObj = new JSONObject(a);
link_Ids = jObj.getJSONArray("Link_Id");
for (int i = 0; i < link_Ids.length(); i++) { // **line 2**
JSONObject childJSONObject = link_Ids.getJSONObject(i);
ids.add(childJSONObject.getString(i));
}
can some one please correct me