MatrixCheng

Results issues of MatrixCheng

我看1.0版本是支持elasticsearch的,怎么2.0突然不支持的,是出于什么考量吗?

类型:需求

我的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