diff --git a/Helpers/SimApiUtil.cs b/Helpers/SimApiUtil.cs index cded92d..af35990 100644 --- a/Helpers/SimApiUtil.cs +++ b/Helpers/SimApiUtil.cs @@ -24,10 +24,10 @@ public static class SimApiUtil /// public static JsonSerializerOptions JsonOption => new() { - ReferenceHandler = ReferenceHandler.Preserve, + // ReferenceHandler = ReferenceHandler.Preserve, Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), PropertyNamingPolicy = JsonNamingPolicy.CamelCase, - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull + // DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull }; /// diff --git a/SimApi.csproj b/SimApi.csproj index ac39b06..91d4719 100644 --- a/SimApi.csproj +++ b/SimApi.csproj @@ -14,8 +14,8 @@ false true 5.0.2 - net8.0 enable + net8.0;net9.0 diff --git a/SimApiExtensions.cs b/SimApiExtensions.cs index ec50def..7a1a22f 100644 --- a/SimApiExtensions.cs +++ b/SimApiExtensions.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text.Json; -using System.Text.Json.Serialization; using Hangfire; using Hangfire.Console; using Hangfire.Redis.StackExchange;