string query = context.Request.QueryString["tag"];
System.Web.Script.Serialization.JavaScriptSerializer JsonSerializer =
new System.Web.Script.Serialization.JavaScriptSerializer();
context.Response.ContentType = "application/json";
context.Response.Write(JsonSerializer.Serialize(Category.GetAll()));
这成功返回,但我如何命名返回的 JSON 数组?就像默认情况下 ASP.NET 命名 json 数组一样返回“d”。自己退货时如何创建相同的功能?