diff --git a/README.md b/README.md index e12a4e3..67bd4ee 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ To retain the old settings use the following configuration when adding Blazored ```csharp builder.Services.AddBlazoredLocalStorage(config => +{ config.JsonSerializerOptions.DictionaryKeyPolicy = JsonNamingPolicy.CamelCase; config.JsonSerializerOptions.IgnoreNullValues = true; config.JsonSerializerOptions.IgnoreReadOnlyProperties = true; @@ -20,7 +21,7 @@ builder.Services.AddBlazoredLocalStorage(config => config.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; config.JsonSerializerOptions.ReadCommentHandling = JsonCommentHandling.Skip; config.JsonSerializerOptions.WriteIndented = false; -); +}); ``` ### SetItem[Async] method now serializes string values @@ -200,4 +201,4 @@ public class IndexPageTests : TestContext Assert.Equal(inputName, name); } } -``` \ No newline at end of file +```