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);
}
Could we provide a way to change the default json options of JsonSerializer?