-
Notifications
You must be signed in to change notification settings - Fork 496
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] 版本2.0.46 引用类型、Boolean、Short 不支持JSONWriter.Feature.WriteNulls #2234
Comments
你给bool设一个默认值 numberShort一个默认值
class Obj {
} |
wenshao
added a commit
that referenced
this issue
Feb 9, 2024
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.47-SNAPSHOT/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
简要描述您碰到的问题。
序列化指定了JSONWriter.Feature.WriteNulls,对于Boolean、Short类型null没有正常序列号
fastjson2版本:2.0.46
附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
com.alibaba.fastjson2.writer.ObjectWriterCreatorASM#gwFieldValueJSONB
不同于Integer Long String Date,其它引用生成的字节码是com.alibaba.fastjson2.writer.ObjectWriterCreatorASM#gwFieldValueObjectJSONB。这里没有对JSONWriter.Feature.WriteNulls特性进行支持
The text was updated successfully, but these errors were encountered: