官术网_书友最值得收藏!

Chapter 1. Instant GSON

Welcome to Instant GSON. This book has been especially created to provide you with all the information that you need to get started with GSON. You will learn the basics of GSON, get started with building JSON representation, and discover some tips and tricks for coding GSON.

This book contains the following sections:

So, what is GSON? helps you find out what GSON actually is, what you can do with it, and why it's so great.

Configuring GSON in Eclipse will help you configure the GSON library in Eclipse IDE for a simple Java project and a Maven type Project.

Quick start – creating your first JSON in GSON will show you how to perform one of the core tasks of GSON: creating courses. Follow the examples discussed in this section to get started with GSON, which will be the common code of most of the GSON use.

Top 12 features you need to know about helps you learn how to perform handling generic-typed, custom serialization and field exclusion strategy. By the end of this section you will be able to:

  • Convert a Java object to JSON
  • Serialize and deserialize in GSON
  • Use the GSON nested classes handling mechanism
  • Convert a Java array to a JSON array
  • Handle generic-type classes while working with GSON serialization and deserialization
  • Handle a null object while working with GSON
  • Use versioning support in GSON
  • Use the no argument constructor support
  • Create a custom field name from a Java object to JSON output string
  • Exclude a JSON field while serializing it in GSON

People and places you should get to know provides you with many useful links to the project page and forums, as well as a number of helpful articles, tutorials, blogs, and Twitter feeds by the GSON super-contributors, as every open source project is centered around a community.

主站蜘蛛池模板: 诸城市| 寿光市| 平乡县| 建阳市| 五指山市| 仙居县| 博乐市| 通州市| 泰安市| 泸水县| 哈尔滨市| 垦利县| 望城县| 桑植县| 香格里拉县| 湖南省| 大竹县| 丰台区| 武川县| 太仓市| 宁夏| 保康县| 黄陵县| 随州市| 宁津县| 娄烦县| 台北市| 织金县| 长岛县| 平顺县| 达州市| 汝南县| 新安县| 新干县| 黎川县| 高阳县| 郑州市| 关岭| 上饶县| 同江市| 万山特区|