I'm new at Json Serialization and Deserialization,
I have
class TestClass
{
public string Name{get;set;}
public string Age{get;set;}
public string Height{get;set;}
}
and have the following serialization function
public void SerializeData()
{
string jsonData = "{
{"Name" : "Zeus","Age" : "1825","Height" : "900"},
{"Name" : "Hera","Age" : "1805","Height" : "200"}
}";
var resultList = new List<TestClass>();
var ser = new JavaScriptSerializer();
resultList= serializer.Deserialize(jsonData , TestClass)
}
but it doesn't work! keeps throwing "Argument Exception"
Any Help Please?