Skip to content

Commit

Permalink
Replace STJ package with Newtonsoft (#995)
Browse files Browse the repository at this point in the history
* remove STJ with Newtonsoft

* increase DTFx.AS version
  • Loading branch information
nytian committed Oct 25, 2023
1 parent 43af2a7 commit 252d0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DurableTask.AzureStorage/Tracking/TagsSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> tags)
=> JsonSerializer.Serialize(tags);
=> JsonConvert.SerializeObject(tags);

public static IDictionary<string, string> Deserialize(string tags)
=> JsonSerializer.Deserialize<Dictionary<string,string>>(tags);
=> JsonConvert.DeserializeObject<Dictionary<string,string>>(tags);
}
}

0 comments on commit 252d0ac

Please sign in to comment.