C# Json格式

using LitJson;

//自定义Json类

JsonDataResult jsondata = new JsonDataResult() { Success = false };

 

HttpContext.Current.Response.Write(JsonMapper.ToJson(jsondata));
HttpContext.Current.Response.ContentType = "application/json";
HttpContext.Current.Response.End();

posted @ 2014-12-19 09:53  Coding_Yong  阅读(1495)  评论(0编辑  收藏  举报