Instant GSON - Sandeep Kumar Patel - E-Book

Instant GSON E-Book

Sandeep Kumar Patel

0,0
20,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 39

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

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

Instant GSON

Instant GSON

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: August 2013

Production Reference: 1230813

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78328-203-6

www.packtpub.com

Credits

Author

Sandeep Kumar Patel

Reviewers

Shameera Rathnayaka

Karim Varela

Acquisition Editor

Usha Iyer

Commissioning Editor

Amit Ghodake

Technical Editors

Krishnaveni Haridas

Chandni Maishery

Copy Editor

Sayanee Mukherjee

Project Coordinator

Akash Poojary

Proofreader

Julie Jackson

Graphics

Abhinash Sahu

Production Coordinator

Nilesh R. Mohite

Cover Work

Nilesh R. Mohite

Cover Image

Ronak Dhruv

About the Author

Sandeep Kumar Patel is a senior web developer and founder of www.tutorialsavvy.com, a widely- read programming blog since 2012. He has more than four years of experience in object-oriented JavaScript and JSON-based web applications development. He is GATE-2005 Information Technology (IT) qualified and has a Masters degree from VIT University, Vellore. At present, he holds the position of senior development engineer in Pramati Technology. You can know more about him from his LinkedIn profile (http://www.linkedin.com/in/techblogger).

He has received the Dzone Most Valuable Blogger (MVB) award for technical publications related to web technologies. His article can be viewed at http://www.dzone.com/users/sandeepgiet.

He has also received the Java Code Geek (JCG) badge for a technical article published in JCG. His article can be viewed at http://www.javacodegeeks.com/author/sandeep-kumar-patel/.

I would like to thank the three most important people in my life. My parents Dilip Kumar Patel and Sanjukta Patel for their love; and my wife Surabhi Patel for her support and the joy that she has brought to my life.

A special thanks to the team at Packt Publishing without whom this book wouldn't have been possible.

About the Reviewers

Shameera Rathnayaka is an Apache Axis2 Committer and a PMC member, and has been actively contributing to several Apache projects for the past few years. He holds a BSc Engineering (Hons) degree in Computer Science and Engineering from the University of Moratuwa, Sri Lanka. He first started his open source contributions with the Apache Axis2 project, where he implemented JDK7 Enum support for Apache Axis2, as well as a stream-based, high-performance solution for JSON<-->XML lossless transformation. A two times Google Summer of Code program participant with the Apache Axis2 and Apache Airavata projects, he is currently working on the project named JSON support and JSON to XML bidirectional conversion for Apache Airavata.

He currently works as a software engineer at WSO2 Inc, an open source enterprise middleware company based in Sri Lanka, where he is a member of the WSO2 Carbon team. His main research interest is Distributed Computing.

Karim Varela, the lead Android engineer at Tinder, has almost 10 years experience in mobile application development. He is currently responsible for building Tinder's Android application from the ground up. He is also leading SocialTagg, a startup whose aim is to connect people at events in a better way.