skip to Main Content

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

C# Problem deserialize XML into JSON array

I have the following XML <table> <name>Table 1</name> <headers> <header>Header 1</header> <header>Header 2</header> </headers> <data> <row> <row_item>Item 1</row_item> <row_item>Item 2</row_item> </row> <row> <row_item>Item 3</row_item> <row_item>Item 4</row_item> </row> </data> </table> Now I can deserialize this easy enough using the built in…

VIEW QUESTION
Back To Top
Search