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

introduce null-save JsonObjectBuilder.add and JsonGenerator.write met… #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented Oct 1, 2021

#213

This other is also related: #97 but we are not serializing null

* Configuration property to ignore null values. All providers
* must support this property. The value of the property is boolean.
*/
public static final String IGNORE_ADDING_IF_NULL = "jakarta.json.JsonBuilderFactory.ignoreAddingIfNull";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about just IGNORE_NULL? (...and same comment wrt constant in an interface applies)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about just IGNORE_NULL? (...and same comment wrt constant in an interface applies)

Sounds better, I will change that.

But first I am afraid that we need to discuss what to do with this other issue #97 that is very similar to this one.

In that issue it is also possible to serialize to null, and this issue I am not covering that.

Basically we need to choose one issue, and close the other.

@jbescos jbescos force-pushed the issue213 branch 2 times, most recently from b588102 to 5f1f592 Compare October 18, 2021 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants