Here is my json object: {"result":"ok","dataType":"2","Data":[["5","1"],["6","2"],["7","3"],["8","4"],["9","5"],["10","6"],["41","7"]]}
I want to deserialize this to a custom c# class that looks like this:
[Serializable]
public class DataRow
{
public string Result { get; set; }
public string Action { get; set; }
public string DataType { get; set; }
public IEnumerable<KeyValuePair<string, string>> Data { get; set; }
}
How can I do this using the .Net JavaScriptSerializer?
whereever you're using it (I mean, if deserialization works that way).