這是gson-1.7.1.jar下載,是Google開發(fā)的Java API,用于轉換Java對象和Json對象,被用來處理Java和JSON對象的轉換,可以調用默認構造器,給大家提供的是最新的gson-2.7.jar,有需要的趕快下載吧!
gson-1.7.1.jar是Android和java開發(fā)過程中需要用到的jar包,這個java類庫能夠快速高效的解決開發(fā)遇到的因為格式的錯誤導致程序異常的問題!有需要的用戶快來下載吧!
下載完畢后,添加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)