I am trying this code:

string s = "[{status:1,fields:[{name:'n1',value:'v1'}]}]";
dynamic o = JsonConvert.DeserializeObject(s);
var f = o.fields[0].name;  

but line 3 gives this error, how come? How do you get this data?

Related posts

Recent Viewed