org.json.JSONException: Value [] of type org.json.JSONArray cannot be converted to JSONObject

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 user6518894
, 1 year ago
Value [] of type org.json.JSONArray cannot be converted to JSONObject
via Stack Overflow by Vinay
, 1 year ago
Value [] of type org.json.JSONArray cannot be converted to JSONObject
via Google Groups by kavitha, 2 years ago
Value [] of type org.json.JSONArray cannot be converted to JSONObject
via Stack Overflow by Pondikpa Tchabao
, 8 months ago
Value [] of type org.json.JSONArray cannot be converted to JSONObject
via GitHub by danieloprado
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via Stack Overflow by pot34731
, 9 months ago
Value data of type java.lang.String cannot be converted to JSONObject
org.json.JSONException: Value [] of type org.json.JSONArray cannot be converted to JSONObject
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONObject.(JSONObject.java:160)
at org.json.JSONObject.(JSONObject.java:173)
at com.example.exam.autocompledemo.JsonParse.getParseJsonWCF(JsonParse.java:32)
at com.example.exam.autocompledemo.SuggestionAdapter$1.performFiltering(SuggestionAdapter.java:39)
at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

182 times, 3 months ago
59 times, 3 months ago
10 times, 4 months ago
59 times, 6 months ago
157 times, 7 months ago

Write tip

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