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] JSONWriter.Feature.IgnoreNoneSerializable对rootObject不生效 #477

Closed
wenshao opened this issue Jun 15, 2022 · 1 comment
Closed
Labels
bug Something isn't working
Milestone

Comments

@wenshao
Copy link
Member

wenshao commented Jun 15, 2022

JSONWriter.Feature.IgnoreNoneSerializable在2.0.7版本中,只对字段生效了,对rootObject不生效,也对Map中的Value不生效。

比如:

static class Bean2 {
}

Bean2 bean = new Bean2();
assertEquals("null", JSONB.toJSONString(
                JSONB.toBytes(bean, JSONWriter.Feature.IgnoreNoneSerializable)
);
@wenshao wenshao added the bug Something isn't working label Jun 15, 2022
@wenshao wenshao added this to the 2.0.8 milestone Jun 15, 2022
@wenshao
Copy link
Member Author

wenshao commented Jun 25, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.8
问题已经修复,请用新版本

@wenshao wenshao closed this as completed Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant