摘要:
//把Json字符串反序列化为对象目标对象 = JavaScriptConvert.DeserializeObject(JSON字符串, typeof(目标对象));//把目标对象序列化为Json字符串string Json字符串 = JavaScriptConvert.SerializeObject(目标对象);Product product = new Product(); product.Name = "Apple";product.Expiry = new DateTime(2008, 12, 28);product.Price = 3.99M;product.Si 阅读全文