Skip to content

Commit c82a961

Browse files
committed
introduce null-save JsonObjectBuilder.add and JsonGenerator.write methods #213
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent d166d5d commit c82a961

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/src/main/java/jakarta/json/JsonBuilderFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
*/
5151
public interface JsonBuilderFactory {
5252

53+
/**
54+
* Configuration property to ignore null values. All providers
55+
* must support this property. The value of the property is boolean.
56+
*/
57+
public static final String IGNORE_ADDING_IF_NULL = "jakarta.json.JsonBuilderFactory.ignoreAddingIfNull";
58+
5359
/**
5460
* Creates a {@code JsonObjectBuilder} instance that is used to build
5561
* {@link JsonObject}.

0 commit comments

Comments
 (0)