Json反序列化返回null

编程入门 行业动态 更新时间:2024-10-28 06:30:11
本文介绍了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

本文发布于:2023-10-25 14:36:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1527240.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:序列化   Json   null

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!