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 authored Oct 16, 2023
1 parent 12fab22 commit 71976c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<!-- Version Info -->
<PropertyGroup>
<MajorVersion>1</MajorVersion>
<MinorVersion>15</MinorVersion>
<PatchVersion>1</PatchVersion>
<MinorVersion>16</MinorVersion>
<PatchVersion>0</PatchVersion>

<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
<FileVersion>$(VersionPrefix).0</FileVersion>
Expand Down
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 71976c4

Please sign in to comment.