From 0d86fed9de89bbb362f9a1c9620424c81a3eca35 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Sun, 1 Feb 2026 11:40:36 +0000 Subject: [PATCH] Change the Serialization documentation to mention use of System.Text.Json rather than Newtonsoft.Json --- docs/Customization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Customization.md b/docs/Customization.md index f4903fe..4e128ce 100644 --- a/docs/Customization.md +++ b/docs/Customization.md @@ -11,11 +11,11 @@ type ProvidedApiClientBase(httpClient: HttpClient) = abstract member Deserialize: string * Type -> obj ``` -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/). +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). **Key features:** 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). -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. +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. ## Request interception @@ -84,7 +84,7 @@ Serialization is also quite flexible. All you need is to define your own type fo -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. +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.