public class test : IHttpHandler { public void ProcessRequest(HttpContext context) { string ss = context.Request["name"]; var serialize = new JavaScriptSerializer(); var t = serialize.Deserialize(ss); } public bool IsReusable { get { return false; } } class Model { public int age { get; set;} public string address{ get; set;} public List ship{ get; set;} } class Ship { public string custID{ get; set;} public string cpname { get; set; } } }
//得到数据对象: