本类可以帮助将一个可被序列化的对象序列化为string类型的Json形式.例子代码
var serializert = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue, RecursionLimit = 100 }; Person p = new Person() { Name = "john", Age = 22}; return new { Content = serializert.Serialize(p), //content="{\"Name\":\"john\",\"Age\":22}"; ContentType = "application/json", };