Gson 发布 2.6 版本,很快又发布了 2.6.1 版本,改进内容包括: Version 2.6.1 2016-02-11 Fix: The 2.6 release targeted Java 1.7, but we intend to target Java 1.6. The 2.6.1 release is identical to 2.6, but it targets Java 1.6. Version 2.6 2016-02-11 Permit timezones without minutes in the default date adapter. Update reader and writer for RFC 7159. This means that strings, numbers, booleans and null may be top-level values in JSON documents, even if the reader is strict. New setLenient() method on GsonBuilder. This setting impacts the new factory method Gson.newJsonReader(). Adapters discovered with @JsonAdapter are now null safe by default. Gson 是 Google 提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库。可以将一个 JSON 字符串转成一个 Java 对象,或者反过来。 Gson 2.6 和 2.6.1 发布,Java 的 JSON 类库下载地址