Skip to content

Commit eb6197a

Browse files
author
Michael Hancock
committed
Modify global options to reflect read-only SerializerSettings
1 parent a1241ee commit eb6197a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/usage/options.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ We use Newtonsoft.Json for all serialization needs.
7575
If you want to change the default serializer settings, you can:
7676

7777
```c#
78-
options.SerializerSettings = new JsonSerializerSettings()
79-
{
80-
NullValueHandling = NullValueHandling.Ignore,
81-
ContractResolver = new DasherizedResolver()
82-
}
78+
options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
79+
options.SerializerSettings.ContractResolver = new DasherizedResolver();
8380
```

0 commit comments

Comments
 (0)