Skip to content

Commit efedb2e

Browse files
authored
IgnoreNullValues isn't for deserialization (dotnet#5470)
1 parent fdbc617 commit efedb2e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,19 +356,21 @@ For more information, see [How to write custom converters for JSON serialization
356356
<ReturnType>System.Boolean</ReturnType>
357357
</ReturnValue>
358358
<Docs>
359-
<summary>Gets or sets a value that determines whether <see langword="null" /> values are ignored during serialization and deserialization. The default value is <see langword="false" />.</summary>
359+
<summary>Gets or sets a value that determines whether <see langword="null" /> values are ignored during serialization. The default value is <see langword="false" />.</summary>
360360
<value>
361-
<see langword="true" /> to ignore null values during serialization and deserialization; otherwise, <see langword="false" />.</value>
361+
<see langword="true" /> to ignore null values during serialization; otherwise, <see langword="false" />.</value>
362362
<remarks>
363363
<format type="text/markdown"><![CDATA[
364364
365365
## Remarks
366366
367+
This setting doesn't apply to deserialization.
368+
367369
For more information, see [How to ignore properties](/dotnet/standard/serialization/system-text-json-ignore-properties).
368370
369371
]]></format>
370372
</remarks>
371-
<exception cref="T:System.InvalidOperationException">This property was set after serialization or deserialization has occurred.
373+
<exception cref="T:System.InvalidOperationException">This property was set after serialization has occurred.
372374

373375
-or-
374376

0 commit comments

Comments
 (0)