Skip to content

Commit 78b9f24

Browse files
authored
Change the Serialization documentation to mention use of System.Text.Json rather than Newtonsoft.Json (#288)
1 parent c2fb78d commit 78b9f24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ type ProvidedApiClientBase(httpClient: HttpClient) =
1111
abstract member Deserialize: string * Type -> obj
1212
```
1313

14-
The snippet shows only the most important parts of `ProvidedApiClientBase`, the full source code provides a default implementation for `Serialize` & `Deserialize` methods that tightly coupled with [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/).
14+
The snippet shows only the most important parts of `ProvidedApiClientBase`, the full source code provides a default implementation for `Serialize` & `Deserialize` methods that are tightly coupled with [System.Text.Json](https://learn.microsoft.com/en-us/dotnet/api/system.text.json?view=net-10.0).
1515

1616
**Key features:**
1717
1. You can provide your own instance of `HttpClient` during API client construction and control HTTP request execution (If you will not provide `HttpClient`, the type provider creates the default one for you).
18-
2. `Serialize` and `Deserialize` methods are abstract. If you are not happy with the default `JsonSerializerSettings` you can override them and configure `Newtonsoft.Json` as you like.
18+
2. `Serialize` and `Deserialize` methods are abstract. If you are not happy with the default `JsonSerializerOptions` you can override them and configure `System.Text.Json` as you like.
1919

2020
## Request interception
2121

@@ -84,7 +84,7 @@ Serialization is also quite flexible. All you need is to define your own type fo
8484

8585
<Note type="note">
8686

87-
Serializer is configurable but not replaceable! Type provider emit type with [JsonPropertyAttribute](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_JsonPropertyAttribute.htm) on properties for seamless serialization.
87+
The serializer is configurable but not replaceable! The Type provider emits types with [JsonPropertyNameAttribute](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonpropertynameattribute?view=net-10.0) on properties for seamless serialization.
8888

8989
</Note>
9090

0 commit comments

Comments
 (0)