fastjson README

The project's README from github.com/alibaba/fastjson. As one markdown file: README.md.

fastjson

Java CI Codecov Maven Central GitHub release License Gitpod Ready-to-Code Fuzzing Status QualityGate

Fastjson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Fastjson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.

FASTJSON 2.0.x has been released, faster and more secure, we recommend you upgrade to the latest version.

Fastjson Goals

fastjson

Documentation

Benchmark

Download

Maven

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

Gradle via JCenter

compile 'com.alibaba:fastjson:2.0.28'

Please see this Wiki Download Page for more repository info.

License

Fastjson is released under the Apache 2.0 license.

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.

fastjson (alibaba/fastjson)

Searching Database…

25.6K ·GitHub
archived
这是什么?Fastjson 是一个 Java 库,可以把 Java 对象转换成 JSON,也能把 JSON 字符串解析回 Java 对象。它支持任意的 Java 对象,包括那些你没有源代码的对象。
所以它是一个我要加到 Java 项目里的库,而不是单独运行的工具?对——是一个库。你添加依赖后,调用 toJSONString() 来序列化对象,调用 parseObject() 来解析 JSON;没有什么需要单独启动的东西。
我怎么把它加到我的项目里?把它作为 Maven 或 Gradle 依赖添加,或者直接下载最新的 JAR;README 里还链接了一个 Wiki 下载页面,提供了更多仓库选项。
我该选哪个版本——这个仓库还在维护吗?README 推荐 FASTJSON 2.0.x,称它比 1.x 更快、更安全。这个 GitHub 仓库已经归档,如果要进行活跃的开发,请改看 fastjson2 项目。
它在 Android 上也能运行吗,还是只能用在服务端?都可以。README 把服务端和 Android 客户端上的顶级性能列为 Fastjson 的目标之一,GitHub 上也给这个项目打了 Android 标签。
它能处理那些源代码不由我控制的类吗?能——Fastjson 支持任意的 Java 对象,包括已有的、不可修改的对象。它还支持 Java 泛型、自定义对象表示,以及继承层次很深的类。
我还在用 Fastjson 1.x,有迁移路径吗?有,README 里除了文档首页和 FAQ,还链接了一份 FASTJSON 1.x 用户升级指南,紧挨着它对升级到 2.0.x 的建议。
它实际跑起来有多快?README 里没有给出具体数字;它链接了 Eishay 基准测试和 fastjson2 基准测试,让你自己在真实负载下评估性能。
What are similar projects?go, gjson, gson, json, flatbuffers, REDox, simdjson, SwiftyJSON
Creator
alibaba
Size
15.2 MB
Stars
25.6K
Age
14y
Commits · 90 Days