File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ From v4 onwards we use the default the `JsonSerializerOptions` for `System.Text.
1212To retain the old settings use the following configuration when adding Blazored SessionStorage to the DI container:
1313
1414``` csharp
15- builder .Services .AddBlazoredSessionStorage (config =>
16- config .JsonSerializerOptions .DictionaryKeyPolicy = JsonNamingPolicy .CamelCase ;
17- config .JsonSerializerOptions .IgnoreNullValues = true ;
18- config .JsonSerializerOptions .IgnoreReadOnlyProperties = true ;
19- config .JsonSerializerOptions .PropertyNameCaseInsensitive = true ;
20- config .JsonSerializerOptions .PropertyNamingPolicy = JsonNamingPolicy .CamelCase ;
21- config .JsonSerializerOptions .ReadCommentHandling = JsonCommentHandling .Skip ;
22- config .JsonSerializerOptions .WriteIndented = false ;
15+ builder .Services .AddBlazoredSessionStorage (config => {
16+ config .JsonSerializerOptions .DictionaryKeyPolicy = JsonNamingPolicy .CamelCase ;
17+ config .JsonSerializerOptions .IgnoreNullValues = true ;
18+ config .JsonSerializerOptions .IgnoreReadOnlyProperties = true ;
19+ config .JsonSerializerOptions .PropertyNameCaseInsensitive = true ;
20+ config .JsonSerializerOptions .PropertyNamingPolicy = JsonNamingPolicy .CamelCase ;
21+ config .JsonSerializerOptions .ReadCommentHandling = JsonCommentHandling .Skip ;
22+ config .JsonSerializerOptions .WriteIndented = false ;
23+ }
2324);
2425```
2526
You can’t perform that action at this time.
0 commit comments