一、Gson Summary
GSON 是 Google提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库,可以快速的将一个 Json 字符转成一个 Java 对象,或者将一个 Java 对象转化为 Json 字符串。
gson 在 github 上开源地址:https://github.com/google/gson
二进制开发包下载:gson 二进制开发包下载地址:https://search.maven.org/artifact/com.google.code.gson/gson/2.8.5/jar
jar 包下载: gson-2.8.4.jar下载、gson-2.8.5.jar下载
Maven 依赖:
gson 的 Maven 仓库地址:https://mvnrepository.com/artifact/com.google.code.gson/gson
Maven依赖:
1 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
2 <dependency>
3 <groupId>com.google.code.gson</groupId>
4 <artifactId>gson</artifactId>
5 <version>2.8.5</version>
6 </dependency>
7
8 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
9 <dependency>
10 <groupId>com.google.code.gson</groupId>
11 <artifactId>gson</artifactId>
12 <version>2.8.4</version>
13 </dependency>