# FASTJSON 2

> High-performance JSON library for Java, the successor to fastjson

Source: https://talira.ai/catalog/fastjson-2-bbdzeh74
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Alibaba Group](https://talira.ai/orgs/alibaba.md)

FASTJSON 2 is Alibaba's JSON library for Java and the successor to fastjson 1.x. It parses JSON into JSONObject, JSONArray or your own classes and serializes objects back to JSON, and also reads and writes JSONB, its own binary format. JSONPath lets you extract parts of a document without parsing all of it, and it has JSON Schema validation, a Kotlin module and Spring integration. It runs on JDK 8 to 21, Android 8 and later, and GraalVM native images, and AutoType is off by default for safety. A compatibility package under fastjson's old Maven coordinates lets projects on fastjson 1.2.x move to it.

## Links

- GitHub: https://github.com/alibaba/fastjson2

## Problems it solves

- parse and generate JSON quickly in a Java service
- upgrade off an old fastjson 1.x version
- read only part of a large JSON document in Java

## Features

- JSON and binary JSONB
- partial parsing with JSONPath
- JSON Schema validation
- Kotlin module and Spring integration
- fastjson 1.x compatibility package
- GraalVM native image support

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.73, momentum 0.58, community 0.86, backing 0.30, extensibility 0.00.

- last commit 15 days ago
- 120 commits in the last 90 days
- latest release 2.0.66 43 days ago
- 4.4k GitHub stars
- 140 contributors
- backed by Alibaba Group

## Alternatives

- [Jackson](https://talira.ai/catalog/jackson-4j3s0grs.md): The Java JSON library: a suite of data-processing tools for Java and the JVM
- [Gson](https://talira.ai/catalog/gson-gym31c30.md): Google's Java library for converting objects to and from JSON
- [JSON-java (org.json)](https://talira.ai/catalog/json-java-org-json-q1cbb2tt.md): The reference JSON implementation for Java, in the public domain

## Sources

[^1]: https://github.com/alibaba/fastjson2/blob/main/LICENSE (checked 27 Nov 2026)
