We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simply put: The Serializer should have build-in Try -methods, to simplify handling of bad data. This should work just like Guid.TryParse();
So something like:
bool success = JsonSerializer.TryDeserializeObject<User>(jsonString, out var user);
Searched for issues using "System.Text.Json JsonSerializer try is:open " and found nothing, so this should not be a duplicate
The text was updated successfully, but these errors were encountered:
This is a duplicate of #29902.
Sorry, something went wrong.
No branches or pull requests
Simply put: The Serializer should have build-in Try -methods, to simplify handling of bad data. This should work just like Guid.TryParse();
So something like:
Searched for issues using "System.Text.Json JsonSerializer try is:open " and found nothing, so this should not be a duplicate
The text was updated successfully, but these errors were encountered: