You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.alibaba.fastjson2.JSONException: offset 8, character {, line 1, column 9, fastjson-version 2.0.26 {"obj":{"unitCode":"955H"}}
at com.alibaba.fastjson2.reader.ObjectReaderImplListStr.readObject(ObjectReaderImplListStr.java:181)
at com.alibaba.fastjson2.reader.ORG_1_1_Result.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:786)
at com.xiaomo.maven.cha.com.xiaomo.study.enums.reflect.JsonTest.test1(JsonTest.java:26)
The text was updated successfully, but these errors were encountered:
###fastjson1支持返回的泛型的DTO转成List,fastjson2不支持
fastjson1和2数据返回兼容不同
温少好,跟 #1240 类似,又发现另一个fastjson1的兼容性问题
环境信息
请填写以下信息:
重现步骤
代码如下
期待的正确结果
上面fastjson1的,能正常解析,但是下面fastjson2的,就会报错
相关日志输出
com.alibaba.fastjson2.JSONException: offset 8, character {, line 1, column 9, fastjson-version 2.0.26 {"obj":{"unitCode":"955H"}}
The text was updated successfully, but these errors were encountered: