fastjson (alibaba/fastjson)
Searching Database…
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
Which topics is it in?
json-parser, serialization, converter, jvm, parser, json, java, backend, mobile, performance, android, apache-2.0
