You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That said, note that System.Text.Json is much stricter than Newtonsoft.Json. While that results in better performance, it will also throw an exception at the slightest deviation from the strict JSON spec.
Activity
Pathoschild commentedon Jul 30, 2024
Hi! The fluent client uses the same formatters as .NET's built-in
HttpClientby default (i.e. Newtonsoft).You can easily change the format like this:
.NET doesn't seem to have an official media type formatter using
System.Text.Jsonyet, but you could try searching NuGet for third-party implementations or create your own.That said, note that
System.Text.Jsonis much stricter than Newtonsoft.Json. While that results in better performance, it will also throw an exception at the slightest deviation from the strict JSON spec.