JsonConvert.DeserializeObject and “d” wrapper in WCF

后端 未结 7 495
梦谈多话
梦谈多话 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

    I'm assuming you are using in your behavior config, replace that with and you will get nice and clean json, no "d" and no "__type"

提交回复
热议问题