MatrixCheng
Results
issues of
MatrixCheng
我的fastjson版本为: com.alibaba fastjson 1.2.58 对JSONArray对象做for循环 JSONArray data = respBody.getJSONArray("data"); data.forEach(item -> { String value = ((JSONObject)item).getString("value"); retResult.setData(value); }); 断点显示item为LinkedHashMap,但是编码时显示为Object 强转JSONObject对象时报错: java.util.LinkedHashMap cannot be cast to com.alibaba.fastjson.JSONObject