webservice 返回json多出一个{"d":null}
webservice 返回json多出一个{"d":null},如下
{
"Response": null,
"Code": 2,
"Message": "工作名称已存在"
}{"d":null}
后台是这么写的
public void ReturnMsg()
{
var response = HttpContext.Current.Response;
response.ContentType = "application/json;";
response.BinaryWrite(System.Text.Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(this)));
}
哪里出错了啊?