Skip to content

Commit 6f84fc9

Browse files
authored
Update README.md
1 parent 8572388 commit 6f84fc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,14 @@ Task delectus aut autem: completed: False
136136

137137
It's cool, isn't it?
138138

139+
### Default JSON serializer
140+
You can change the default `JsonSerializerOptions` by modifying the singlton reference at `HttpClientHelper.DefaultJsonSerializerOptions`. In the default implementation `JsonSerializerOptions.PropertyNameCaseInsensitive` is set to `true` to cover most use cases.
141+
139142
### About `HttpClient` injection
140143

141144
The tool automatically adds a constructor with a `HttpClient` parameter in the generated code but you can provide
142145
a `HttpClient` instance manually by using one of the following methods:
143146

144-
#### Default JSON serializer
145-
You can change the default `JsonSerializerOptions` by modifying the singlton reference at `HttpClientHelper.DefaultJsonSerializerOptions`. In the default implementation `JsonSerializerOptions.PropertyNameCaseInsensitive` is set to `true` to cover most use cases.
146147
#### Introducing a field or property
147148

148149
If you add a constructor and provide a `HttpClient` field or property, the generator will use that field:

0 commit comments

Comments
 (0)