Aspnetcore: [Blazor] Allow passing of JSON options in PostJsonAsync extension

Created on 26 Feb 2020  路  3Comments  路  Source: dotnet/aspnetcore

Microsoft.AspNetCore.Components.HttpClientJsonExtensions always uses an internal set of options that cannot be accessed by a Blazor app.

Please add an additional overload that lets us pass the JSON serialization options to use if we don't want to use the default options.

Duplicate Resolved area-blazor

Most helpful comment

I don't think we have one yet (there is an internal DevOps item though), so I just filed this: https://github.com/dotnet/runtime/issues/32937

All 3 comments

Thanks for contacting us.
@terrajobst can you please point out to the issue tracking the HttpClient extensions support for System.Text.Json? Thanks!

I don't think we have one yet (there is an internal DevOps item though), so I just filed this: https://github.com/dotnet/runtime/issues/32937

Closing this issue as the work is being tracked in the referenced issue.

Was this page helpful?
0 / 5 - 0 ratings