From 71976c4c116d7448ed9da7d43051b56457cecf18 Mon Sep 17 00:00:00 2001 From: Naiyuan Tian <110135109+nytian@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:30:47 -0700 Subject: [PATCH] Replace STJ package with Newtonsoft (#995) * remove STJ with Newtonsoft * increase DTFx.AS version --- .../DurableTask.AzureStorage.csproj | 4 ++-- src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj b/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj index 025e67da1..7137e172f 100644 --- a/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj +++ b/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj @@ -20,8 +20,8 @@ 1 - 15 - 1 + 16 + 0 $(MajorVersion).$(MinorVersion).$(PatchVersion) $(VersionPrefix).0 diff --git a/src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs b/src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs index 5fa02a47d..32093266e 100644 --- a/src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs +++ b/src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs @@ -12,16 +12,16 @@ // ---------------------------------------------------------------------------------- using System.Collections.Generic; -using System.Text.Json; +using Newtonsoft.Json; namespace DurableTask.AzureStorage.Tracking { internal static class TagsSerializer { public static string Serialize(IDictionary tags) - => JsonSerializer.Serialize(tags); + => JsonConvert.SerializeObject(tags); public static IDictionary Deserialize(string tags) - => JsonSerializer.Deserialize>(tags); + => JsonConvert.DeserializeObject>(tags); } }