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
What is this?Fastjson is a Java library that converts Java objects to JSON and parses JSON strings back into Java objects. It works with arbitrary Java objects, including ones you have no source code for.
So it is a library I add to my Java project, not a tool I run on its own?Right — a library. You add the dependency and call toJSONString() to serialize objects and parseObject() to parse JSON back; there is nothing to launch separately.
How do I add it to my project?Add it as a Maven or Gradle dependency, or just download the latest JAR; the README also links a Wiki Download Page with more repository options.
Which version should I pick — and is this repo still alive?The README recommends FASTJSON 2.0.x, calling it faster and more secure than 1.x. This GitHub repo is archived, so for active development look at the fastjson2 project instead.
Does it run on Android too, or is it server-side only?Both. The README lists top performance on the server-side and on Android clients among Fastjson's goals, and GitHub tags the project for Android.
Can it handle objects whose source code I don't control?Yes — Fastjson works with arbitrary Java objects, including pre-existing unmodifiable ones. It also supports Java Generics, custom object representations, and classes with deep inheritance hierarchies.
I'm still on Fastjson 1.x — is there a migration path?Yes, the README links a FASTJSON 1.x User Upgrade Guide alongside the docs home and FAQ, next to its recommendation to move to 2.0.x.
How fast is it in practice?The README quotes no numbers; it links the Eishay benchmark and the fastjson2 benchmark so you can judge performance on real workloads yourself.
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