Skip to content

Commit

Permalink
introduce null-save JsonObjectBuilder.add and JsonGenerator.write met…
Browse files Browse the repository at this point in the history
…hods jakartaee#213

Signed-off-by: Jorge Bescos Gascon <[email protected]>
  • Loading branch information
jbescos committed Oct 1, 2021
1 parent d166d5d commit c82a961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/main/java/jakarta/json/JsonBuilderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
*/
public interface JsonBuilderFactory {

/**
* 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";

/**
* Creates a {@code JsonObjectBuilder} instance that is used to build
* {@link JsonObject}.
Expand Down

0 comments on commit c82a961

Please sign in to comment.