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

  • Instant GSON
  • Sandeep Kumar Patel
  • 311字
  • 2021-04-02 10:33:59

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.

主站蜘蛛池模板: 博罗县| 岱山县| 阿坝| 肃宁县| 饶阳县| 瓦房店市| 车致| 喀什市| 波密县| 普安县| 江川县| 江津市| 周口市| 嘉兴市| 健康| 毕节市| 厦门市| 成安县| 兴文县| 辽中县| 兴义市| 会昌县| 沐川县| 上饶县| 三穗县| 龙江县| 华容县| 峨边| 岢岚县| 德庆县| 青龙| 西乌珠穆沁旗| 石林| 逊克县| 泰宁县| 运城市| 江孜县| 福海县| 开鲁县| 旬邑县| 会宁县|