摘要:
public List JsonToList(string str) { str = "{\"User\":[{\"Name\":\"Sony\",\"Age\":7},{\"Name\":\"Samsumg\",\"Age\":14},{\"Name\":\"LG\",\"Age\":21},{\"Name\":\"Vizio\",\" 阅读全文
摘要:
string jsonArrayText1 = "[{'a':'a1','b':'','time':''}]"; JavaScriptSerializer ser = new JavaScriptSerializer(); List list = ser.Deserialize>(jsonArrayText1);user类序列化[Serializable]public class user{ public user() { } [XmlElement("a&quo 阅读全文