All right, I'm going to put out the running map again, the source.
Jil is a JSON-oriented serialization framework that can be downloaded on NuGet to
Supported data types
It is worth mentioning that the GUID specified with the dash format (44B2673B-B5CA-477B-A8EA-F7B673F5783E) also supported Oh, SQL SERVER, the data type Runiqueidentifier default is to use this format, very convenient.
It seems that the installation on the VS2010 is unsuccessful, the installation on the VS2013 is successful, there may be dependencies
Open the Package Manager console interface, enter
Install-package Jil
After the installation is successful, you can start coding, and the test class is the same as in the previous example.
Or the example of a previous article
It's handy when you call it.
Reference namespaces
using Jil;
serialization, deserialization mode
New List<person>() {p1, p2}; string content = JSON. Serialize<list<person>>(psource); Console.Write (content); // Write file File.writealltext ("d://hellojson.txt", content); Console.WriteLine ("\r\n**** Resolution SECTION * * * * * *"); List<Person> pResult = JSON. deserialize<list<person>> (content);
Compared with PROTOBUF, the volume is much larger, but wins in JS native support
Fastest JSON sequence frame Jil, Getting started with hands-on transcripts