-
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
JSONWriter.Feature.NullAsDefaultValue "map": null #372
Comments
现在当存在NullAsDefaultValue是,WriteNulls值是自动生效的 |
@wenshao WriteNulls值是自动生效的 , 那map为空时,输出 "map": null, 和 "map": {} 哪个是预期值呢? |
wenshao
added a commit
that referenced
this issue
Jun 2, 2022
问题已经修复,请帮忙用2.0.6-SNAPSHOT版本验证,2.0.6正式版预计6月5日前发布 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
简要描述您碰到的问题。
序列化 map 还是为null
config.setWriterFeatures( JSONWriter.Feature.NullAsDefaultValue)
map返回为null "map": null,
环境信息
请填写以下信息:
springboot 2.6.3
期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
不应该为 "map": {} 的嘛
The text was updated successfully, but these errors were encountered: