org.json.JSONException

Value at headers of type java.lang.String cannot be converted to JSONArray 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSON.typeMismatch(JSON.java:100) 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSONObject.getJSONArray(JSONObject.java:588)

Solutions on the web1363

  • via Stack Overflow by arinze
    , 1 year ago
    Value at headers of type java.lang.String cannot be converted to JSONArray 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSON.typeMismatch(JSON.java:100) 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSONObject.getJSONArray(JSONObject.java:588)
  • Value {"category":"1","Body":"eeee","Price":"110.0","ID":"1","NowPrice":"10.0","idRef":"1","user":"1","Title":"I"} at project of type org.json.JSONObject cannot be converted to JSONArray 12-19 11:56:17.374: W/System.err(456): at
  • via Stack Overflow by DEEPAK YADAV
    , 1 year ago
    Value <HTML> of type java.lang.String cannot be converted to JSONObject 12-24 01:44:45.249: W/System.err(1531): at org.json.JSON.typeMismatch(JSON.java:111) 12-24 01:44:45.249: W/System.err(1531): at org.json.JSONObject.<init&gt
  • Stack trace

    • org.json.JSONException: Value at headers of type java.lang.String cannot be converted to JSONArray 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSON.typeMismatch(JSON.java:100) 07-24 12:20:50.852 16574-16591/com.example.cann W/System.err? at org.json.JSONObject.getJSONArray(JSONObject.java:588) at com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:82) at com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.