From 8553bd39b6dd3787f2a1772984b6eb3bd57461c0 Mon Sep 17 00:00:00 2001 From: Ilkay Ilknur Date: Fri, 7 May 2021 13:14:29 +0300 Subject: [PATCH] AbpSystemTextJsonSerializerOptions description added. --- docs/en/JSON.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/en/JSON.md b/docs/en/JSON.md index 33ef889711..29e93007af 100644 --- a/docs/en/JSON.md +++ b/docs/en/JSON.md @@ -40,6 +40,8 @@ public class ProductManager ## Configuration +### AbpJsonOptions + `AbpJsonOptions` type provides options for the JSON operations in the ABP Framework. Properties: @@ -47,3 +49,12 @@ Properties: * **UseHybridSerializer(`bool`)**: True by default. Boolean field indicating whether the ABP Framework uses the hybrid approach or not. If the field is true, it will try to use `System.Json.Text` to handle JSON if it can otherwise use the `Newtonsoft.Json.` * **Providers(`ITypeList`)**: List of JSON serializer providers implementing the `IJsonSerializerProvider` interface. You can create and add custom serializers to the list, and the ABP Framework uses them automatically. When the `Serialize` or `Deserialize` method is called on the `IJsonSerializer` interface, the ABP Framework calls the `CanHandle` methods of the given providers in reverse order and uses the first provider that returns `true` to do the JSON operation. +### AbpSystemTextJsonSerializerOptions + +`AbpSystemTextJsonSerializerOptions` provides options for `System.Text.Json` usage. + +Properties: + +- **JsonSerializerOptions(`System.Text.Json.JsonSerializerOptions`)**: Global options for System.Text.Json library operations. See [here](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializeroptions) for reference. +- **UnsupportedTypes(`ITypeList`)**: List of the unsupported types. You can add types of the unsupported types to the list and, the hybrid JSON serializer automatically uses the `Newtonsoft.Json` library instead of `System.Text.Json`. +