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