Skip to content

Commit dd37838

Browse files
committed
tweak
1 parent 8dc940b commit dd37838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard/serialization/system-text-json/missing-members.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dev_langs:
99

1010
# Handle unmapped members during deserialization
1111

12-
By default, if the JSON payload you're deserializing contains properties that don't exist in the plain old CLR object (POCO) type, they're simply ignored. Starting in .NET 8, you can specify that *all members in the payload must exist in the POCO*. If they're not, a <xref:System.Text.Json.JsonException> exception is thrown during deserialization. You can configure this behavior in one of three ways:
12+
By default, if the JSON payload you're deserializing contains properties that don't exist in the plain old CLR object (POCO) type, they're simply ignored. Starting in .NET 8, you can specify that *all payload properties must exist in the POCO*. If they're not, a <xref:System.Text.Json.JsonException> exception is thrown during deserialization. You can configure this behavior in one of three ways:
1313

1414
- Annotate your POCO type with the <xref:System.Text.Json.Serialization.JsonUnmappedMemberHandlingAttribute> attribute, specifying either to <xref:System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip> or <xref:System.Text.Json.Serialization.JsonUnmappedMemberHandling.Disallow> unmapped members.
1515

0 commit comments

Comments
 (0)