问题是:在json里面有个arry,arry里面又有一个arry
我的处理方法是:
JSONArray cardComboItems = JSONObject.fromObject(cardComboJob).getJSONArray("items");
然后报错:
net.sf.json.JSONException: 'object' is an array. Use JSONArray instead
请问大神怎么解决这个问题?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
第一个就是jsonArray,你需要先读取出来JSONArray.
JSONArray cardComboItems = JSONArray.fromObject(cardComboJob).getJSONArray("items");