File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
api/src/main/java/jakarta/json Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 50
50
*/
51
51
public interface JsonBuilderFactory {
52
52
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
+
53
59
/**
54
60
* Creates a {@code JsonObjectBuilder} instance that is used to build
55
61
* {@link JsonObject}.
Original file line number Diff line number Diff line change 86
86
* </code>
87
87
* </pre>
88
88
*
89
- * <p>This class does <em>not</em> allow <code>null</code> to be used as a name or
90
- * value while building the JSON object
89
+ * <p>By default, this class does <em>not</em> allow <code>null</code> to be used as a name or
90
+ * value while building the JSON object. It is possible to change this behavior with configuration
91
+ * {@link JsonBuilderFactory#IGNORE_ADDING_IF_NULL}
91
92
*
92
93
* @see JsonArrayBuilder
93
94
*/
You can’t perform that action at this time.
0 commit comments