diff --git a/FileManager/PersistentDictionary.cs b/FileManager/PersistentDictionary.cs index 81ef971b..34cd13d3 100644 --- a/FileManager/PersistentDictionary.cs +++ b/FileManager/PersistentDictionary.cs @@ -51,7 +51,8 @@ namespace FileManager { var obj = GetObject(propertyName); if (obj is null) return default; - if (obj is JToken jToken) return jToken.Value(); + if (obj is JValue jValue) return jValue.Value(); + if (obj is JObject jObject) return jObject.ToObject(); return (T)obj; }