Data List = new DBAccess().getData();
System.Web.Script.Serialization.JavaScriptSerializer jss = new System.Web.Script.Serialization.JavaScriptSerializer();
string jasonstr = jss.Serialize(List );
Response.Clear();
Response.CacheControl = "no-cache";
Response.Write(jasonstr);
Response.End();
序列化返回字符串(asp.net代码)