本文介绍了Json反序列化返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有得到适当的课程下面的json。我使用下面的类进行解析,但它给了我一个null。(从下面的代码中,feed对象有NULL)。
I didnt get the proper classes for the below json. I used the below class for Parsing, but it gave me a null.(From the below code, feed object has NULL).
我用了json2csharp/ 。
我总是在响应的反序列化时得到null。这里的错误或其他任何好方法是什么?
I always get a null on deserialisation of response. Whats the mistake here or anyother good way to this??
谢谢。
推荐答案
在页面上检查我的样本
code.msdn.microsoft/Calling-REST-Service-50b94d8f/view/Reviews
如果您的代理类是不正确可能会得到null。属性应匹配。
If your proxy class is not correct might get null. The properties should match.
更多推荐
Json反序列化返回null
发布评论