Skip to content

Conversation

@MrSmoke
Copy link
Member

@MrSmoke MrSmoke commented Oct 20, 2025

Adds a SystemTextJson ISerializer

@MrSmoke MrSmoke changed the title Add SystemTextJson serializer HttpClient: Add SystemTextJson serializer Oct 20, 2025
if (input is null)
throw new ArgumentNullException(nameof(input));

return JsonSerializer.Deserialize<T>(input, options)!;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the null-forgiving operator here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good catch. The interface wasnt nullable before. Removed them 🙏

@kevinwell kevinwell merged commit c0a22e9 into master Oct 22, 2025
5 checks passed
@kevinwell kevinwell deleted the httpclient/stj branch October 22, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants