Gson API : Java object -> Json and Json -> Java object Example

JSONJavaScript Object Notation is a popular alternative for xml and it is very simple and easy to read and write data exchange format. There are lot of third party libraries are available to processing JSON data like JSON.simple,Jackson,Gson etc

GsonGson is a Open sources API from Google to convert Java object to JSON representation and JSON to Java Object. The source code is available in Google site (http://code.google.com/p/google-gson)