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
{1:"张三",2:"张四"}
Exception in thread "main" com.alibaba.fastjson2.JSONException: illegal character 1
at com.alibaba.fastjson2.JSONReaderUTF16.readFieldNameHashCode(JSONReaderUTF16.java:635)
at com.alibaba.fastjson2.reader.ObjectReaderImplObject.readObject(ObjectReaderImplObject.java:31)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:629)
期待的正确结果
期望和1.2.83_noneautotype版本输出的结果一致
The text was updated successfully, but these errors were encountered:
问题描述
Map转json后没有写入类型, 导致转换为java对象的时候报错
环境信息
重现步骤
如何操作可以重现该问题:
结果:
结果:
期待的正确结果
期望和1.2.83_noneautotype版本输出的结果一致
The text was updated successfully, but these errors were encountered: