You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/microsoft/graph/serializer/DefaultSerializer.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,11 @@ public DefaultSerializer(@Nonnull final ILogger logger) {
72
72
/**
73
73
* Creates a DefaultSerializer with an option to enable serializing of the null values.
74
74
*
75
+
* Serializing of null values can have side effects on the service behavior.
76
+
* Sending null values in a PATCH request might reset existing values on the service side.
77
+
* Sending null values in a POST request might prevent the service from assigning default values to the properties.
78
+
* It is not recommended to send null values to the service in general and this setting should only be used when serializing information for a local store.
79
+
*
75
80
* @param logger the logger
76
81
* @param serializeNulls the setting of whether or not to serialize the null values in the JSON object
Copy file name to clipboardExpand all lines: src/main/java/com/microsoft/graph/serializer/GsonFactory.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,11 @@ public static Gson getGsonInstance(@Nonnull final ILogger logger) {
78
78
/**
79
79
* Creates an instance of GSON
80
80
*
81
+
* Serializing of null values can have side effects on the service behavior.
82
+
* Sending null values in a PATCH request might reset existing values on the service side.
83
+
* Sending null values in a POST request might prevent the service from assigning default values to the properties.
84
+
* It is not recommended to send null values to the service in general and this setting should only be used when serializing information for a local store.
85
+
*
81
86
* @param logger the logger
82
87
* @param serializeNulls the setting of whether or not to serialize the null values in the JSON object
0 commit comments