We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ef263b commit d511a44Copy full SHA for d511a44
1 file changed
README.md
@@ -21,20 +21,10 @@ To enable Protobuf support you need to register it on `JsonSerializerOptions`:
21
22
```csharp
23
var jsonSerializerOptions = new JsonSerializerOptions();
24
-jsonSerializerOptions.PropertyNamingPolicy = new JsonLowerCaseNamingPolicy();
+jsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
25
jsonSerializerOptions.AddProtobufSupport();
26
```
27
28
-```csharp
29
-private class JsonLowerCaseNamingPolicy : JsonNamingPolicy
30
-{
31
- public override string ConvertName(string name)
32
- {
33
- return name.ToLower();
34
- }
35
-}
36
-```
37
-
38
You need to pass the options each time you want to serialize:
39
40
0 commit comments