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 1, character 1, line 1, column 1, fastjson-version 2.0.48 1,2
at com.alibaba.fastjson2.reader.ObjectReaderImplList.readObject(ObjectReaderImplList.java:589)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:786)
at com.alibaba.fastjson2.function.impl.StringToAny.apply(StringToAny.java:81)
at com.alibaba.fastjson2.reader.FieldReader.acceptAny(FieldReader.java:425)
at com.alibaba.fastjson2.reader.ObjectReaderAdapter.createInstance(ObjectReaderAdapter.java:659)
at com.alibaba.fastjson.JSONObject.toJavaObject(JSONObject.java:1011)
The text was updated successfully, but these errors were encountered:
问题描述
类型不匹配时转换异常
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
以上代码报错
期待的正确结果
如果类型不匹配,还是能够转换成功,值可以为null,避免报错。
fastjson 1.2.83目前是可以转换成功,lines[0]值为"1,2"
相关日志输出
com.alibaba.fastjson2.JSONException: offset 1, character 1, line 1, column 1, fastjson-version 2.0.48 1,2
The text was updated successfully, but these errors were encountered: