c# - How to deserialize following format from JSON? -


how deserialize below format using newtonsoft.json. tried please provide answer possible

0008,0050: {          name: "accessionnumber"          type: "null"          value: null            }- 0008,0052: {         name: "queryretrievelevel"         type: "string"         value: "study"          }-  0010,0010: {        name: "patientname"        type: "string"        value: "knix"             }-  0010,0020: {        name: "patientid"         type: "string"         value: "ozp00sjy2xg"         }-   0020,000d: {        name: "studyinstanceuid"         type: "string"        value: "1.2.840.113619.2.176.2025.1499492.7391.1171285944.390"               }-     }" 

if want property value, try
var result = getjsonresult() jsonresult;
jsonresult propertyvalue = (jsonresult)result.data.gettype().getproperty("propertyname").getvalue(result.data, null);


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -