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)

Stack Overflow | arinze | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Display Json data in android

    Stack Overflow | 9 months ago | arinze
    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)
  2. 0

    Show listview picture and details using picasso

    Stack Overflow | 3 years ago | user3534054
    org.json.JSONException: No value for id 09-13 07:38:59.220: W/System.err(1315): at org.json.JSONObject.get(JSONObject.java:355) 09-13 07:38:59.220: W/System.err(1315): at org.json.JSONObject.getString(JSONObject.java:515) 09-13 07:38:59.260: W/System.err(1315): at com.example.cann.CategoryActivity.upd(CategoryActivity.java:103) 09-13 07:38:59.260: W/System.err(1315): at com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:148)

    Root Cause Analysis

    1. 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()
    2. com.example.cann
      CategoryActivity$LoadComments.doInBackground
      1. com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:82)
      2. com.example.cann.CategoryActivity$LoadComments.doInBackground(CategoryActivity.java:61)
      2 frames