More Information
  • Convert Java objects to and from JSON
  • Handle generic and null java objects
  • Maintain different versions of serialized JSON
  • Alter the name of fields when serializing
  • Creating user defined annotation to remove fields while serializing
  • Learn about the implementation of GSON in web applications

GSON is a specialized Java-based library for handling JSON data, developed by Google. GSON demonstrates an efficient use of CPU time, memory efficiency, the library, and developer productivity. This book will help you implement GSON in your Java project.

Instant GSON is a practical, hands-on guide that provides you with all the implementation features of the GSON API through coded examples, which will help you take advantage of the real power that is behind the GSON API, and give you a good grounding to use it in your projects.

Instant GSON starts with an introduction to the JSON data format and GSON library. It will take you through the configuration steps required to set up a GSON-based Java project. You will learn about the top features of the GSON library, which includes handling generic type and nested class objects in Java, implementing versioning support, exclusion strategies, and pretty printing. At the end of the book you will find some useful references to articles, blogs, and active communities.

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Convert JAVA Objects to JSON representation and vice versa
  • Learn about the Field Exclusion strategy
  • Write your own JSON converter
Page Count 60
Course Length 1 hours 48 minutes
ISBN 9781783282043
Date Of Publication 25 Aug 2013


Sandeep Kumar Patel

Sandeep Kumar Patel is a senior web developer and the founder of, a programming blog that has been widely read since its inception in 2012. He has over 5 years of experience in object-oriented JavaScript and JSON-based web applications development. He is GATE-2005 Information Technology (IT) qualified and has a master's degree from VIT University, Vellore. You can get to know more about him by looking at his LinkedIn profile ( He has received the DZone Most Valuable Blogger (MVB) award for technical publications related to web technologies. His article can be viewed at He has also received the Java Code Geeks (JCG) badge for a technical article published on the JGC website. His article can be viewed at

His other books are listed as follows:

  • Instant GSON
  • Responsive Web Design with AngularJS