你的位置:首页 > 软件开发 > ASP.net > Newtonsoft.Json(Json.net)的基本用法

Newtonsoft.Json(Json.net)的基本用法

发布时间:2015-05-20 20:00:18
添加引用: 使用NuGet,命令:install-package Newtonsoft.Json 实体类: public class Book { public string BookID { get; set; } public DateTime PublishD ...

添加引用:

使用NuGet,命令:install-package Newtonsoft.Json

实体类:

public class Book  {    public get='_blank'>string BookID { get; set; }    public DateTime PublishDate { get; set; }    public decimal Price { get; set; }    public override string ToString()    {      return "ID:" + BookID + "; Date:" + PublishDate.ToShortDateString() + "; Price" + Price.ToString("n");    }  }

原标题:Newtonsoft.Json(Json.net)的基本用法

关键词:.NET

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。