alibaba/fastjson
GitHub: alibaba/fastjson
阿里巴巴开源的高性能 Java JSON 序列化与反序列化库,致力于在服务端和移动端提供快速便捷的 JSON 处理能力。
Stars: 25610 | Forks: 6404
# fastjson
[](https://github.com/alibaba/fastjson/actions/workflows/ci.yaml)
[](https://codecov.io/gh/alibaba/fastjson/branch/master)
[](https://maven-badges.herokuapp.com/maven-central/com.alibaba/fastjson/)
[](https://github.com/alibaba/fastjson/releases)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[](https://gitpod.io/#https://github.com/alibaba/fastjson)
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:fastjson2)
[](https://quality-gate.com/dashboard/branches/7816#overview)
Fastjson 是一个 Java 库,可用于将 Java 对象转换为其 JSON 表示形式。它也可以用于将 JSON 字符串转换为等价的 Java 对象。Fastjson 可以处理任意 Java 对象,包括你没有源代码的现有对象。
[FASTJSON 2.0.x](https://github.com/alibaba/fastjson2/releases) 已经发布,速度更快且更安全,我们建议您[升级](https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn)到最新版本。
### Fastjson 目标
* 在服务器端和 android 客户端上提供最佳性能
* 提供简单的 toJSONString() 和 parseObject() 方法,用于将 Java 对象转换为 JSON 以及将 JSON 转换为 Java 对象
* 允许现有的不可变对象与 JSON 之间进行转换
* 广泛支持 Java 泛型
* 允许对象的自定义表示
* 支持任意复杂的对象(具有深度继承层次结构和广泛使用泛型类型)

## 文档
- [文档首页](https://github.com/alibaba/fastjson/wiki)
- [贡献代码](https://github.com/nschaffner/fastjson/blob/master/CONTRIBUTING.md)
- [常见问题解答](https://github.com/alibaba/fastjson/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
- FASTJSON 1.x 用户升级指南 [https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn](https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
)
## 基准测试
* Eishay 基准测试 https://github.com/eishay/jvm-serializers/wiki
* fastjson2 基准测试 [https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark](https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark)
## 下载
- [maven][1]
- [最新的 JAR][2]
## Maven
```
com.alibaba
fastjson
2.0.31
```
## 通过 JCenter 使用 Gradle
```
compile 'com.alibaba:fastjson:2.0.28'
```
请查看此 [Wiki 下载页面][Wiki] 以获取更多仓库信息。
### *许可证*
Fastjson 基于 [Apache 2.0 许可证](license.txt) 发布。
```
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.
```
标签:JSON, JS文件枚举, 后台面板检测, 后端开发, 序列化, 解析库