Source code of the WinCE-based JSON class library

Source: Internet
Author: User

The object can be serialized into strings and files based on the WinCE JSON class library.

 

It prompts that there is a BUG in deserialization:

If a field value of an object is null, an exception is thrown when it is serialized into a string and deserialized into an object.

This usually has little impact. During serialization, a non-null default value can be provided for all fields of the object.

 

Test code:

Main (json = Converter. serialize (User (, [] {,-}, = Converter. deserialize <User> (json, [] values = Converter. deserializeFromFile <[]> (, _ id = Thing _ think = {_ userName = {_ password = {_ status = {User (userName, === Role (DateTime. now, Role (DateTime expires, === DateTime Expires {; Name {; User {; {_ name = View Code

 

:

Http://files.cnblogs.com/08shiyan/CodeBetter.JsonCF_v0.2_Source.zip

 

----------------

Continued:

Powerful Newtonsoft. Json

Http://files.cnblogs.com/08shiyan/Newtonsoft.Json.Compact.zip

I have been using. NET-based products and have not found any. net cf-based products. Today, I found my child. Haha

 

 

Related Article

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.