Fastest JSON sequence frame Jil, Getting started with hands-on transcripts

Source: Internet
Author: User

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

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.