Enjoy JSON (de-)serialization in Java. Learn every detail about Gson’s capabilities, configuration & customization.
Every modern Java application will need to do some Java-JSON parsing in their application life cycle. Gson is the most commonly used library to do the Java-JSON serialization and deserialization automatically.
Data parsing and mapping is complex. Even though Gson makes things quite simple, there are a lot of details that can trip your development up. If it's crazy data structures, weird variable names or complex dynamic data, you can lose a lot of time on something that should be done in minutes. Gson solves most problems in just a few lines. You just need to know the solutions!
This book includes an extensive introduction to Gson's features. We recommend to read it before you even have to use Gson for the first time. But even if you're already an avid user of Gson and stuck at a problem, we're confident we'll solve your problem.
Use our extensive bundle to learn about:
This book is for Android or Java developers who want to get a substantial overview and reference book for Gson. You’ll benefit from the clearly recognizable code examples in regard to your daily work with Gson.
If you’re just starting out with Gson (or coming from any other Java-JSON library like Jackson databind) this book will show you all important parts on how to work with Gson. The provided code snippets let you jumpstart and create the first mapping within minutes.
You already worked with Gson before? You’ll profit from our extensive code snippets and can improve your existing code base. Additionally, the book illustrates various optimizations for an even better performance.
Every code snippet in the book has been tested. We provide our test project as a Leanpub extra. Feel free to download it and check the full code base as you move through the book. We try to keep the code snippets in the book as short as possible. If more context is necessary, the code examples should provide it.
For the first time, we provide additional separated resources besides our book. The workbook gives you a chance to implement everything you'll learn in this book yourself. In our experience actually using a library like Gson helps to reinforce the newly gained knowledge. Thus, we've designed the workbook, which gives you a guided playground to experiment and learn the features of Gson.
We've sold hundreds of premium eBooks on Leanpub with a very high satisfaction rate. But we're not fulfilled yet and have to take another step further. The Gson package will not just include the eBook, it'll also come with a workbook with practical tasks and solutions, so you can solidify your Gson knowledge.
We've released our first book on Retrofit in July 2015 and it's still getting updates. The book more than doubled in quantity and jumped up in quality since the initial release. The price of the eBook went up along with its value. The first buyers of our products always get the best deal and the lowest price!