Skip to content

Commit

Permalink
Replace the obsolete JsonSerializerOption IgnoreNullValues with the n…
Browse files Browse the repository at this point in the history
…ewer equivalent DefaultIgnoreCondition.
  • Loading branch information
LeonSpors authored Nov 13, 2021
1 parent d55a7fc commit 86d36cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To retain the old settings use the following configuration when adding Blazored
builder.Services.AddBlazoredLocalStorage(config =>
{
config.JsonSerializerOptions.DictionaryKeyPolicy = JsonNamingPolicy.CamelCase;
config.JsonSerializerOptions.IgnoreNullValues = true;
config.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
config.JsonSerializerOptions.IgnoreReadOnlyProperties = true;
config.JsonSerializerOptions.PropertyNameCaseInsensitive = true;
config.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
Expand Down

0 comments on commit 86d36cd

Please sign in to comment.