-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Could we provide a way to change the default json options of JsonSerializer?
public static async Task<T> GetAndDeserializeAsync<T>(this HttpClient client, string requestUri, ITestOutputHelper output = null)
{
HttpResponseMessage obj = await client.GetAsync(requestUri, output);
obj.EnsureSuccessStatusCode();
string text = await obj.Content.ReadAsStringAsync();
output?.WriteLine("Response: " + text);
return JsonSerializer.Deserialize<T>(text, Constants.DefaultJsonOptions);
}
Dmitry0108
Metadata
Metadata
Assignees
Labels
No labels