I am trying to display data from JSON array to ListView. But it gives me an exception:
org.json.JSONException: Value [{\"fine_id\":\"51771\",\"st
Do the following:
Change
JSONObject data = jsonObj.getJSONObject(json);
to
JSONArray data = jsonObj.getJSONArray(json);
json is an array, not an object. Thus you are getting an exception.
Edited:
for(int i=0; i
P.S
[ represents JSON array node { represents JSON object node