org.json.JSONException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web610

  • via Stack Overflow by user6518894
    ,
  • via Stack Overflow by Vinay
    ,
  • Stack trace

    • 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.<init>(JSONObject.java:160) at org.json.JSONObject.<init>(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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    filpgamefilpgame
    29 times, last one
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    8 times, last one
    Hiren AmaliyarHiren Amaliyar
    36 times, last one
    Unknown UserUnknown User
    38 times, last one
    Indri YunitaIndri Yunita
    4 times, last one
    78 more bugmates