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

Json – Select JToken by property value

I am trying to find a more elegant solution than foreach loops for the following problem. Sample JSON Structure: [{ "OpportunityId": "ABC-123-XYZ", "Status": "Active", "Milestones": { "Milestone": [ { "Name": "Award", "Date": "8/27/2021" } ] }, "Staff": { "Pocs": […

VIEW QUESTION

Deserialize JSON with comma-separated values

I want to de-serialize a JSON where a node contains values which comma-separated. But the object which contains the comma returns null when deserializing. Input JSON: { "SolutionTabletSubSectionUId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "SolutionTabletSubSectionId": 1, "SolutionTabletUId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Title": "string", "SubTitle": "string", "Description": "string", "Link":…

VIEW QUESTION
Back To Top
Search