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();

原文地址:https://www.cnblogs.com/sunzhenyong/p/4173212.html