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();
原文:http://www.cnblogs.com/sunzhenyong/p/4173212.html