Skip to content
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] JSONB 序列化集合时,如果集合里有空的元素,会序列化失败 #1826

Closed
refeccd opened this issue Sep 4, 2023 · 3 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@refeccd
Copy link
Contributor

refeccd commented Sep 4, 2023

问题描述

JSONB 序列化集合时,如果集合里有空的元素,会序列化失败

环境信息

  • 版本信息:[e.g.:Fastjson2 2.0.39]

重现步骤

image

image

这里如果 str == null,writeNull 之后,应该是需要 continue,而不是继续往下走吧

@refeccd refeccd added the bug Something isn't working label Sep 4, 2023
@wenshao wenshao added this to the 2.0.41 milestone Sep 4, 2023
@wenshao
Copy link
Member

wenshao commented Sep 4, 2023

@refeccd
Copy link
Contributor Author

refeccd commented Sep 6, 2023

Fixed

@refeccd refeccd closed this as completed Sep 6, 2023
@wenshao
Copy link
Member

wenshao commented Oct 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants