当前位置:网站首页>图书 > 正文 >>

Instant GSON

图书信息

作者Sandeep Kumar Patel
出版社Packt Publishing
ISBN9781783282043
出版时间2013-08-26
字数72.8万
分类进口书,外文原版书,电脑,网络

读书简介

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. Instant GSON is a practical, hands-on guide that will explain the implementation features of the GSON API through examples with code.Instant GSON is for software developers who are new to the GSON library, and who are looking to explore it in depth. You should have some experience in Java programming and Java POJO classes.

目录

Instant GSON

Instant GSON

Credits

About the Author

About the Reviewers

www.packtpub.com

Support files, eBooks, discount offers, and more

packtlib.packtpub.com

Why Subscribe?

Free Access for Packt account holders

1. Instant GSON

So, what is GSON?

Configuring GSON in Eclipse

Getting the GSON library

Configuring a Java project

Configuring a Maven project

Quick start – creating your first JSON in GSON

Step 1 – instantiating GSON

The default approach

The builder approach

A quick example

Top 12 features you need to know about

Java objects support

Serialization and deserialization

Pretty printing

Nested classes

Static nested class

Pure nested class

Array

Generic type

Null object support

Versioning support

No argument constructor support

Field naming support

User-defined field naming

Field exclusion strategies

Configuring GsonBuilder

Using annotation

User-defined field exclusion annotation

Applications of GSON

People and places you should get to know

Official sites

Articles and tutorials

Community

Blogs