-
Notifications
You must be signed in to change notification settings - Fork 485
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]WriteNulls导致Long、Double字段序列化为null #3049
Labels
bug
Something isn't working
Comments
rowstop
added a commit
to rowstop/fastjson2
that referenced
this issue
Oct 8, 2024
3 tasks
wenshao
pushed a commit
that referenced
this issue
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
使用注解
@JSONField(serializeFeatures = {JSONWriter.Feature.WriteNulls})
的Long、Double字段在序列化时无论是否有值均输出为null
。内部类不受影响。环境信息
重现步骤
代码
输出为
期待的正确结果
相关日志输出
(无)
附加信息
(无)
The text was updated successfully, but these errors were encountered: