org.json.JSONException: Value {"result":[{"id":"1","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"2","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"3","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"4","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"5","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"}]} of type org.json.JSONObject cannot be converted to JSONArray W/System.err:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by achref05
, 1 year ago
","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"4","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"5","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"}]} of type org.json.JSONObject cannot be converted to JSONArray W/System.err:
via Stack Overflow by Pritesh Patel
, 1 month ago
Value {"message":"No Results found!","status":"false"} of type org.json.JSONObject cannot be converted to JSONArray
via Stack Overflow by Droidthusiast
, 11 months ago
Value Johnny of type java.lang.String cannot be converted to JSONArray
via Stack Overflow by Neo
, 4 months ago
Value Check of type java.lang.String cannot be converted to JSONArray
via Stack Overflow by Abhi Bardolia
, 8 months ago
Value <HTML> of type java.lang.String cannot be converted to JSONArray
via Stack Overflow by Charlton Santana
, 1 week ago
Value [ 05-24 17:33:17.221: W/System.err(24203): {"firstName":"John","lastName":"Doe"}, 05-24 17:33:17.221: W/System.err(24203): {"firstName":"Anna","lastName":"Smith"}, 05-24 17:33:17.221: W/System.err(24203): {"firstName":"Peter","lastName": "Jones"} 05-24 17:33:17.221: W/System.err(24203): ] of type java.lang.String cannot be converted to JSONArray
org.json.JSONException: Value {"result":[{"id":"1","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"2","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"3","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"4","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"},{"id":"5","duration":"achref","imageRes":"http://127.0.0.1/asd.jpg","mat":"achref","name":"achref"}]} of type org.json.JSONObject cannot be converted to JSONArray W/System.err:
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
at org.json.JSONArray.(JSONArray.java:108)
at com.example.wiola.prisonapp.fragments.PrisonnerListFragment.getPrisonersFromJson(PrisonnerListFragment.java:166)
at com.example.wiola.prisonapp.fragments.PrisonnerListFragment$AsyncGetPrisoners.doInBackground(PrisonnerListFragment.java:103)
at com.example.wiola.prisonapp.fragments.PrisonnerListFragment$AsyncGetPrisoners.doInBackground(PrisonnerListFragment.java:87)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

Users with the same issue

5 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
66 times, 1 month ago
63 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.