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: syntax error : {, offset 1, character {, line 1, column 1, fastjson-version 2.0.49 {}
at com.alibaba.fastjson2.JSONReader.readArray(JSONReader.java:2339)
at com.alibaba.fastjson2.JSON.parseArray(JSON.java:2658)
at Issue1459_54.testMutated(Issue1459_54.java:17)
The text was updated successfully, but these errors were encountered:
问题描述
{}
为空json对象,JSON.parseObject正常。使用parseArray时,fastjson2抛出异常,而fastjson将其解析为[{}]
。环境信息
重现步骤
期待的正确结果
希望Fastjson 与Fastjson2 在解析上保持一致语法规范
相关日志输出
com.alibaba.fastjson2.JSONException: syntax error : {, offset 1, character {, line 1, column 1, fastjson-version 2.0.49 {}
The text was updated successfully, but these errors were encountered: