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
I suggest you add JsonSerializerOptions as a parameter(could be optional) to the HttpClient.GetJsonAsync method. For the deserialization of json you are using JsonSerializer.Parse<T>(await httpClient.GetStringAsync(requestUri), JsonSerializerOptionsProvider.Options).
The parameter JsonSerializerOptionsProvider.Options should be accessible.
This should probably be added to all extension methods in Microsoft.AspNetCore.Components.HttpClientJsonExtensions
From @mkArtakMSFT on Monday, June 17, 2019 4:35:31 PM
Thanks for contacting us, @GoranHalvarsson.
This is something we've been thinking about for quite some time. Parking in the next milestone for now to discuss what we're going to do here.
@mkArtakMSFTHttpClient.GetJsonAsync is an extension method defined in the ASP repo, not part of corefx. Please re-open the original issue and close this one.
From @GoranHalvarsson on Sunday, June 16, 2019 7:49:28 PM
I suggest you add JsonSerializerOptions as a parameter(could be optional) to the HttpClient.GetJsonAsync method. For the deserialization of json you are using
JsonSerializer.Parse<T>(await httpClient.GetStringAsync(requestUri), JsonSerializerOptionsProvider.Options)
.The parameter
JsonSerializerOptionsProvider.Options
should be accessible.This should probably be added to all extension methods in
Microsoft.AspNetCore.Components.HttpClientJsonExtensions
Copied from original issue: dotnet/aspnetcore#11266
The text was updated successfully, but these errors were encountered: