I have a JSON object something like
var jsonObject = {"att1" : "val1","att2" : "val2","att3" : "val3","att4" : "val4"}
I need to convert the same into expandoObject
I tried something like
var expConverter = new ExpandoObjectConverter();
dynamic obj = JsonConvert.DeserializeObject<List<ExpandoObject>>(jsonObject, expConverter);
But It is not giving the result.
Can someone help me to get the result ?
Thanks in advance.
dynamic obj = JsonConvert.DeserializeObject<ExpandoObject>(jsonObject, expConverter);
works just fine...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With