在 WindowsPhone 上用于检索 Web 服务数据,无论是 JSON 还是 xml 都适用
我使用 xml 服务从 web 服务发布和检索数据。我不知道JSON解析,JSON是否比xml容易。
I used xml services for post and retrieving data from webservices. I dont know about JSON parsing, whether JSON is easy than xml.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

这取决于您是否计划支持其他平台?
基于 .Net 的平台拥有足够的资源来轻松使用通过各种序列化方法(以及许多其他变体)托管的服务。如果您只计划支持 Windows Phone 或其他基于 .Net 的平台,那么您可能会发现 XML 序列化很简单并且可以坚持使用。当您开始考虑其他平台时,您可能会发现 Xml 序列化有时会很痛苦,而 JSON 是首选方式。
如果除了 .Net 平台附带的 JSON 序列化器之外,您还想使用 JSON 解析,您可能还需要查看 JSON.Net(比 .Net 库附带的灵活得多)和 RestSharp 用于消费具有 JSON 序列化的基于 REST 的服务。
That depends, do you plan on supporting other platforms?
The .Net based platforms have more than ample resources for easily consuming services that are hosted with a variety of serialization methods (and many other variances). If you only plan on supporting Windows Phone or other .Net based platforms than you may find that XML Serialization is easy and can stick with it. When you start to consider other platforms then you may find that Xml serialization can at times be a pain and JSON is the preferred way.
If you want to go with JSON parsing in addition to the JSON serializer that comes with the .Net platforms you may also want to check out JSON.Net (which is much more flexible than what comes with the .Net libraries) and RestSharp for consuming REST based services with JSON serialization.