For WP8.1 Development, the solution that JSON cannot deserialize when invoking the network API interface

Source: Internet
Author: User

Share a method URL for a C # object that automatically generates JSON:

http://tools.wx6.org/json2csharp/

After copying a new class in the project, the class name can be automatically generated root, can also be customized, custom, do not forget to modify the copied class name

If your custom class name is C, change ROOT to C

For complex nested JSON, remember: do not put a collection in the collection, you want to build the object to put the collection so that it can be called when the data is bound

The json.net is recommended for use with this open source library, which is referenced with the WINRT Json.dll

Then use Root r=jsonconvert.deserializeobject<root> (here is the JSON string to return);

This will successfully deserialize the

For WP8.1 Development, the solution that JSON cannot deserialize when invoking the network API interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.