这是gson-1.7.1.jar下载,是Google开发的Java API,用于转(zhuǎn)换Java对象和Json对象,被用来处理Java和JSON对象(xiàng)的转换,可以调用(yòng)默(mò)认构造器,给大家提供的是最新(xīn)的(de)gson-2.7.jar,有(yǒu)需要的赶快下载吧!
gson-1.7.1.jar是(shì)androids和java开发过程(chéng)中需要用到的(de)jar包,这个java类库能够快(kuài)速高效的解决开发(fā)遇到的因为格式的错误导(dǎo)致程序异常的问(wèn)题!有需(xū)要的用户快来下载吧!
下载完毕后,添加gson-.jar到类路径。对于那些偏好使用Maven管理依赖(jar文件)的读者,添加如(rú)下依赖到pom.xml。
需(xū)要修(xiū)改 2.2.4。本(běn)文所(suǒ)有代码示例使用上面(miàn)列出的(de)版(bǎn)本。pom.xml文件拷贝(bèi)可(kě)以在(zài)这里找到。
如果(guǒ)这(zhè)个(gè)库(kù)用于web应用,请确保在(zài)WEB-INF/lib文件夹中保(bǎo)持一份拷(kǎo)贝。或者,GSON库可(kě)以(yǐ)放到应(yīng)用服(fú)务器(qì)提供给(gěi)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)
