JavaScriptSerializer jss =new JavaScriptSerializer();
context.Response.ContentType ="text/plain";
Dictionary<string, string> drow =new Dictionary<string, string>();
drow.Add("name", "Wang");
drow.Add("age", "24");
context.Response.Write(jss.Serialize(drow));
c# 自动构造json 字符串
最新推荐文章于 2024-09-24 10:39:16 发布