谷歌的potobuf不说了,它很牛B,但是对客户端对象不支持,比如Javascr ipt就读取不了。
Jil很牛,比Newtonsoft.Json要快很多,且支持客户端,此处只贴代码:
using Jil;
using System.Runtime.Serialization;
[Serializable]
class Employee
{
//[JilDirective(Name = "cid")]
public int Id { get; set; }
[IgnoreDat
什么是JSON?
JSON (Javascr ipt Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write and easy for machines to parse and generate. JSON is a text format that is completely language independent.
翻译:Json【javascr
using System;
using System.Collections.Generic;
using System.Web.scr ipt.Serialization;
using System.Configuration;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
namespace WebApplicat