018-Not a primitive array: class org.json.JSONArray问题解决(转)

转载自:https://blog.csdn.net/akuma_/article/details/83992871

Not a primitive array: class org.json.JSONArray

报错语句:
JSONArray okJsonArray = new JSONArray(jsonParam.get(""));
解决办法:
JSONArray okJsonArray = new JSONArray(jsonParam.get("").toString());

JSONArray okJsonArray = (JSONArray) jsonParam.get(“id_name”);

posted @ 2020-02-29 11:37  阿布不学习  阅读(675)  评论(0编辑  收藏  举报