skip to Main Content

Newtonsoft.Json DeserializeObject not working

I have a very simple JSON file: [ { "smbshare": { "name": "Backup", "path": "\linuxserverbackup" }, "smbshare2": { "name": "Tools", "path": "\linuxservertools" } } ] My model class: public class SmbShare { [JsonProperty("name")] public string Name { get;set; } [JsonProperty("path")]…

VIEW QUESTION
Back To Top
Search