在我的控制器中:
public class ProfileController : ApiController
{
public HttpResponseMessage PostCreateProfile (HubBasicProfile bp)
{
HttpResponseMessage result = null;
if (bp == null)
{
result = Request.CreateResponse(HttpStatusCode.InternalServerError, "Could not instantiate Profile with JSON provided.");
}
...
Run Code Online (Sandbox Code Playgroud)
json的自动反序列化以实例化bp对象发生在后台。
我想看看控制器收到的json,以尝试解决我们遇到的问题。此时,bp始终为空。(当我说我想看看时,我想检查一下,看看解串器在哪里出问题。)
我看了发送的json,这似乎很好。
因此,有人可以告诉我如何调试json-> bp对象进程吗?
| 归档时间: |
|
| 查看次数: |
2676 次 |
| 最近记录: |