Επεξεργασία

Κοινή χρήση μέσω


Handle unmapped members during deserialization

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 JsonException exception is thrown during deserialization. You can configure this behavior in one of three ways: