Value xxx of type org.json.JSONObject cannot be converted to JSONArray
·
这个异常是try catch 走到error 里面了
说的已经很清楚了 json 是 字符串 不是数组形式
而我的使用 json 是字符串形式 ,
JSONArray jsonArray = new JSONArray(json);
所以这里我改成JSONObject
JSONObject jsonObject = new JSONObject(json);
这样 就可以了。。。。。。
更多推荐


所有评论(0)