How to use
After downloading, add gson-<version>.jar to the classpath. For those readers who prefer to use Maven to manage dependencies (jar files), add the following dependencies to pom.xml.
Need to modify <version>2.2.4</version>. All code examples in this article use the versions listed above. A copy of the pom.xml file can be found here.
If this library is used in a web application, be sure to keep a copy in the WEB-INF/lib folder. Alternatively, the GSON library can be placed on an application server and provided to web applications.
it works
it works
it works