JsonConvert.DeserializeObject and “d” wrapper in WCF

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

    You could have a deserialization wrapper class that has one property called "d". Once you've successfully deserialized to it then get the value from the d property.

提交回复
热议问题