这是gson-1.7.1.jar下载,是Google开发的Java API,用于转换Java对象和Json对象,被用来处理Java和JSON对象的转换,可以调用默认构造器,给大家提供的是最新的gson-2.7.jar,有需要的赶快下载吧!
gson-1.7.1.jar是Android和java开发过程中需要用到的jar包,这个java类库能够快速高效的解决开发遇到的因为格式的错误导致程序异常的问题!有需要的用户快来下载吧!
下载完毕后,添加gson-.jar到类路径。对于那些偏好使用Maven管理依赖(jar文件)的读者,添加如下依赖到pom.xml。
需要修改 2.2.4。本文所有代码示例使用上面列出的版本。pom.xml文件拷贝可以在这里找到。
如果这个库用于web应用,请确保在WEB-INF/lib文件夹中保持一份拷贝。或者,GSON库可以放到应用服务器提供给web应用。
Provide simple toJson() and fromJson() methods to convert Java objects to JSON and vice-versa
Allow pre-existing unmodifiable objects to be converted to and from JSON
Extensive support of Java Generics
Allow custom representations for objects
Support arbitrarily complex objects (with deep inheritance hierarchies and extensive use of generic types)