org.json.JSONException

Value at headers of type java.lang.String cannot be converted to JSONObject

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web1477

  • via Stack Overflow by arinze
    , 11 months ago
    Value at headers of type java.lang.String cannot be converted to JSONObject
  • Value Cannot of type java.lang.String cannot be converted to JSONObject
  • via GitHub by posativ
    , 1 year ago
    Value Cannot of type java.lang.String cannot be converted to JSONObject
  • Stack trace

    • org.json.JSONException: Value at headers of type java.lang.String cannot be converted to JSONObject at org.json.JSON.typeMismatch(JSON.java:100) at org.json.JSONObject.getJSONObject(JSONObject.java:613) at com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:81) at com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:60)

    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

    82 times, 5 months ago
    14 times, 11 months ago
    10 times, 1 year ago
    3 times, 1 year ago
    2 times, 3 months ago
    57 more bugmates