The repository contains some examples that show how deserialize json format string using google Gson library.
The purpose of the examples is to show and solve some complex scenarios.
To install use the following command:
mvn clean install
To run the examples move into target folder and run:
/* If you are under Windows */
java -cp gson-complex-examples-1.0-SNAPSHOT.jar;lib\* com.nicolasodano.gson.example1.RunExample
/* If you are under Unix */
java -cp gson-complex-examples-1.0-SNAPSHOT.jar;lib/* com.nicolasodano.gson.example1.RunExample
- Google Gson library: https://code.google.com/p/google-gson/