Skip to content

Commit 8dbdb3f

Browse files
authored
Revert "IgnoreNullValues isn't for deserialization (dotnet#5470)" (dotnet#5476)
This reverts commit efedb2e.
1 parent efedb2e commit 8dbdb3f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,21 +356,19 @@ 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. 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 and deserialization. The default value is <see langword="false" />.</summary>
360360
<value>
361-
<see langword="true" /> to ignore null values during serialization; otherwise, <see langword="false" />.</value>
361+
<see langword="true" /> to ignore null values during serialization and deserialization; 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-
369367
For more information, see [How to ignore properties](/dotnet/standard/serialization/system-text-json-ignore-properties).
370368
371369
]]></format>
372370
</remarks>
373-
<exception cref="T:System.InvalidOperationException">This property was set after serialization has occurred.
371+
<exception cref="T:System.InvalidOperationException">This property was set after serialization or deserialization has occurred.
374372

375373
-or-
376374

0 commit comments

Comments
 (0)