智能化下的产物,无人棋牌室
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 onGsonBuilder
. This setting impacts the new factory methodGson.newJsonReader()
. - Adapters discovered with
@JsonAdapter
are now null safe by default.
Gson 是 Google 提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库。可以将一个 JSON 字符串转成一个 Java 对象,或者反过来。