Blazor: Ability to set the JsonSerializerOptions.IgnoreNullValues property for JS Interop. #27015
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Blazor appears to have no mechanism to configure the global serialization/deserialization process when making JS Interop function calls. For instance I would like the ability to ignore null values, a facility provided by
System.Text.Json
via the JsonSerializerOptions.IgnoreNullValues property.The only way today is to manually serialize my parameters before feeding them into
InvokeVoid
:The text was updated successfully, but these errors were encountered: