webserver 返回json 如何去掉 <string xmlns="http://tempuri.org/">

[WebMethod]
  public void GetJson(String sJson)
  {
    Context.Response.Charset = "UTF-8"; //设置字符集类型
    Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
    Context.Response.Write(sJson);
    Context.Response.End();
  }

 

 url: 'WebService1.asmx/GetJson'

posted @ 2020-03-10 16:37  麦格雷超  阅读(1401)  评论(0编辑  收藏  举报