日期:2014-05-17 浏览次数:20836 次
查看原文
/// <summary> /// Converts an object to its JSON representation. /// </summary> /// <param name="obj"></param> /// <returns></returns> public static string ConvertToJson(object obj) { return new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(obj); }