-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Date 类型处理异常 #467
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.8-SNAPSHOT/ |
wenshao
added a commit
that referenced
this issue
Jun 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
对象中包含 Date 类型的属性,通过 @JSONField 指定格式化,当 Date 类型的属性值为 "",parseObject 会报错;当 Date 类型的属性为 null,parseObject 正常
Fastjson 1.2.83 没有这个问题
环境信息
重现步骤
JSON.parseObject
方法{"date":""}
数据Text '' could not be parsed at index 0
错误相关日志输出
The text was updated successfully, but these errors were encountered: