diff --git a/uSync.Core/Extensions/JsonTextExtensions.cs b/uSync.Core/Extensions/JsonTextExtensions.cs index 7c67b1f1..8f8a0412 100644 --- a/uSync.Core/Extensions/JsonTextExtensions.cs +++ b/uSync.Core/Extensions/JsonTextExtensions.cs @@ -1,6 +1,4 @@ -using Json.More; - -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Text.Json; using System.Text.Json.Nodes; using System.Text.Json.Serialization; @@ -403,7 +401,14 @@ public static bool TryGetPropertyAsObject(this JsonObject jsonObject, string pro try { - result = propertyNode.AsObject(); + result = propertyNode.GetValueKind() switch + { + JsonValueKind.String => new JsonObject + { + { propertyName, propertyNode.ToString() } + }, + _ => propertyNode.AsObject(), + }; } catch {