I want to deserialize an jsonData, I will put the class and json data i am getting here.
This is the Json:
{ "$id":"1", "Success":true, "Message":[], "Data: [ { "$id":"2", "ID":1, "StudentCount":"30", "Boys":"15", "Girls":"15", "EntryDate":"2013-06-12T00:00:00" } ] }
this is what I have written to deserialize. I am not getting any error but showing the same data as json
WebClient wc = new WebClient(); string json = wc.DownloadString("http://localhost:43293/api/Common"); var oc = JsonConvert.DeserializeObject(json);
This is the class:
public class Outcome { public bool Success { get; set; } public List Message { get; set; } public object Data { get; set; } public Outcome() { Message = new List(); } }