From 161084c20eb39af2525fed99ab158e990bce2c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Wed, 25 Aug 2021 16:22:34 +0200 Subject: [PATCH] Clarify the JSON.NET -> System.Text.Json migration section --- guide/migration/20-to-30.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guide/migration/20-to-30.md b/guide/migration/20-to-30.md index d79e5fa..d3aec37 100644 --- a/guide/migration/20-to-30.md +++ b/guide/migration/20-to-30.md @@ -116,7 +116,8 @@ services.AddOpenIddict() ## Replace JSON.NET by `System.Text.Json` If you use JSON.NET to serialize or deserialize `OpenIdConnectMessage`, `OpenIdConnectRequest` or `OpenIdConnectResponse` instances, -consider moving to `System.Text.Json` when migrating to OpenIddict 3.0, as 3.0 no longer includes a built-in JSON.NET `JsonConverter` for these types. +consider moving to `System.Text.Json` when migrating to OpenIddict 3.0, as 3.0 no longer includes a built-in JSON.NET `JsonConverter` for their +equivalent in 3.0: `OpenIddictMessage`, `OpenIddictRequest` or `OpenIddictResponse`. In most cases, this should be as simple as replacing `JsonConvert.SerializeObject()`/`JsonConvert.DeserializeObject()` by their `System.Text.Json` equivalent: `JsonSerializer.Serialize()`/`JsonSerializer.Deserialize()`.