天天看點

Java 的快速 JSON 解析器/生成器fastjson

Java 的快速 JSON 解析器/生成器fastjson

Fastjson 目标

  • 在服務端和安卓用戶端提供最佳性能
  • 提供簡單的 toJSONString() 和 parseObject() 方法來将 Java 對象轉換為 JSON,反之亦然
  • 允許預先存在的不可修改對象與 JSON 互相轉換
  • 對 Java 泛型的廣泛支援
  • 允許對象的自定義表示
  • 支援任意複雜的對象(具有深層繼承層次結構和泛型類型的廣泛使用)

文檔

https://github.com/alibaba/fastjson#benchmark 基準

https://github.com/eishay/jvm-serializers/wiki

https://github.com/alibaba/fastjson#download 下載下傳

https://github.com/alibaba/fastjson#maven 代碼

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.76</version>
</dependency>
      

通過 JCenter 的 Gradle

compile 'com.alibaba:fastjson:1.2.76'
      
compile 'com.alibaba:fastjson:1.1.72.android'
      

有關更多存儲庫資訊,請參閱此

Wiki 下載下傳頁面

執照

Fastjson 是在

Apache 2.0 許可

下釋出的。

Copyright 1999-2020 Alibaba Group Holding Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at the following link.

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.