-2

Here is the stack trace.

Note that the Asynctask is working perfectly.

What is the problem here? Can anyone please help me?

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Mag
  • 89
  • 1
  • 11

1 Answers1

1

You are trying to read property from array, use below syntax

JSONArray array = new JSONArray (response.toString());
JSONObject object = array.getJSONObject(0);
String url = object.getString("image");
Ken Y-N
  • 14,644
  • 21
  • 71
  • 114
Rajan Kali
  • 12,627
  • 3
  • 25
  • 37