Newtonsoft.Json.JsonConvert.DeserializeObject for Dynamic Type

Jul 29, 2011 at 2:39 PM

Hi,

I have created a runtime type using TypeBuilder in silverlight.

Have Created IList Object for the Dymanic Type.

I want to Deserialize data for Dymanic Type.

JSONText = "[{""Code"":""001"",""Description"":""001""}]"

Newtonsoft.Json.JsonConvert.DeserializeObject(<T>)(value).

How do i pass dynamic type as <T> to Newtonsoft.Json.JsonConvert.DeserializeObject(<T>) function.

 

Thanks