红联Linux门户
Linux帮助

Gson 2.6和2.6.1发布,Java的JSON类库

发布时间:2016-02-14 09:22:58来源:红联作者:baihuo
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 对象,或者反过来。

软件详情:https://github.com/google/gson

来自:开源中国社区
文章评论

共有 0 条评论