Created
March 7, 2026 23:23
-
-
Save AnthonyGiretti/06d3c575158eea57684c9f783abf1bd7 to your computer and use it in GitHub Desktop.
.NET 10 introduces JsonSerializerOptions.Strict Deserialization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Text.Json; | |
| var options = JsonSerializerOptions.Strict; | |
| var user = JsonSerializer.Deserialize<LoginRequest>(jsonPayload, options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment