C# 的 JSON 生成器和解析器 Fluent-json
- 授权协议: BSD
- 开发语言: C#
- 操作系统: Windows
- 软件首页: http://code.google.com/p/fluent-json/
- 软件文档: http://code.google.com/p/fluent-json/
软件介绍
Fluent-json 是 C# 的 JSON 生成器和解析器,除了支持基本的 JSON 操作,还可以映射自定义类到 JSON 数据格式。这是一个线程安全的库,同时确保强类型安全。
示例代码:
JsonEncoder<Book> encoder = Json.EncoderFor<Book>(config => config
.MapType<Book>(map => map
.AllFields()
// DateTime can't be encoded to native json. Conversion is required.
.Field<DateTime>(field => field.pubDate, pubDate => pubDate
.EncodeAs<string>(value => value.ToShortDateString())
)
// BookType can't be encoded either, let's convert it too.
.Field<BookType>(field => field.type, type => type
.EncodeAs<int>(value => (int)value)
// Lets assume we would want to encode this field to a
// different json field.
.To("book_type")
)
)
.MapType<Author>(map => map
.AllFields()
)
.UseTidy(true)
);
Book book = new Book();
book.title = "Around the world in 80 days";
book.tags = new List<string> { "traveling", "adventure" };
book.pageCount = 342;
book.pubDate = DateTime.Now;
book.author = new Author();
book.author.forname = "Jules";
book.author.surname = "Verne";
string json = encoder.Encode(book);
Adobe Dreamweaver CS5中文版经典教程
Adobe公司 / 陈宗斌 / 人民邮电 / 2011-1 / 45.00元
《Adobe Dreamweaver CS5中文版经典教程》由Adobe公司的专家编写,是AdobeDreamweavelCS5软件的官方指定培训教材。全书共分为17课,每一课先介绍重要的知识点,然后借助具体的示例进行讲解,步骤详细、重点明确,手把手教你如何进行实际操作。全书是一个有机的整体,它涵盖了Dreamweavercs5的基础知识、HTML基础、CSS基础、创建页面布局、使用层叠样式表、使......一起来看看 《Adobe Dreamweaver CS5中文版经典教程》 这本书的介绍吧!
