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
Exception in thread "main" com.alibaba.fastjson2.JSONException: illegal fieldName input0, offset 30, character 0, line 1, column 31, fastjson-version 2.0.27 {"list":[{"innerList":[{"f1":0}]}]}
at com.alibaba.fastjson2.JSONReaderUTF16.readFieldNameHashCode(JSONReaderUTF16.java:1055)
at com.alibaba.fastjson2.reader.ORG_2_1_Inner.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderImplList.readObject(ObjectReaderImplList.java:500)
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:344)
at com.alibaba.fastjson2.reader.ObjectReaderImplList.readObject(ObjectReaderImplList.java:541)
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:344)
at com.alibaba.fastjson2.reader.ORG_1_1_Test.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:644)
at com.doodl6.springboot.rocketmq.consumer.Test.main(Test.java:46)
附加信息
在Fastjson2 2.0.25版本是可以正常转回去的
The text was updated successfully, but these errors were encountered:
问题描述
JSON.toJSONString以后通过parseObject转回原对象类型报错
环境信息
请填写以下信息:
重现步骤
期待的正确结果
可以正常转回原来的类型对象
相关日志输出
Exception in thread "main" com.alibaba.fastjson2.JSONException: illegal fieldName input0, offset 30, character 0, line 1, column 31, fastjson-version 2.0.27 {"list":[{"innerList":[{"f1":0}]}]}
at com.alibaba.fastjson2.JSONReaderUTF16.readFieldNameHashCode(JSONReaderUTF16.java:1055)
at com.alibaba.fastjson2.reader.ORG_2_1_Inner.readObject(Unknown Source)
at com.alibaba.fastjson2.reader.ObjectReaderImplList.readObject(ObjectReaderImplList.java:500)
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:344)
at com.alibaba.fastjson2.reader.ObjectReaderImplList.readObject(ObjectReaderImplList.java:541)
at com.alibaba.fastjson2.reader.ObjectReaderImplMapTyped.readObject(ObjectReaderImplMapTyped.java:344)
at com.alibaba.fastjson2.reader.ORG_1_1_Test.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:644)
at com.doodl6.springboot.rocketmq.consumer.Test.main(Test.java:46)
附加信息
在Fastjson2 2.0.25版本是可以正常转回去的
The text was updated successfully, but these errors were encountered: