JsonConvert.DeserializeObject and “d” wrapper in WCF

后端 未结 7 465
梦谈多话
梦谈多话 2020-12-21 08:53

By default WCF service wrap JSON response in \"d\" wrapper and there I found a problem with parsing it.

If I parse with JsonConvert.DeserializeObject(respons

7条回答
  •  礼貌的吻别
    2020-12-21 09:07

    Looks like you're using the enableWebScript behavior on your webHttpBinding. You should probably be using the webHttp behavior instead- this gives you "clean" JSON instead of the ASP.NET AJAX client JSON.

提交回复
热议问题