A high-performance Java library for converting Java objects to JSON and vice versa.
Fastjson is a Java library for converting Java objects to JSON representation and parsing JSON strings back into Java objects. It solves the need for fast and efficient data interchange in Java applications, particularly where performance is a priority. The library handles complex object structures, including those with generics and deep inheritance.
Java developers building server-side applications or Android apps that require high-performance JSON processing. It is also suitable for projects needing to serialize pre-existing Java objects without source code modifications.
Developers choose Fastjson for its exceptional speed, simple API, and robust support for Java features like generics and complex object hierarchies. It is a proven, widely-adopted library optimized for performance-critical environments.
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Optimized as one of the fastest JSON libraries for Java, with benchmarks showing superior speed on server-side and Android, as highlighted in the project goals and linked benchmark tests.
Provides straightforward methods like toJSONString() and parseObject() for easy JSON conversion, making it accessible without complex configurations.
Supports serialization and deserialization of arbitrary Java objects, including those with deep inheritance hierarchies and extensive generics, as stated in the documentation.
Can work with pre-existing Java objects without requiring source code modifications, enabling integration into legacy systems.
Older versions of Fastjson have had significant security flaws, prompting the recommendation to upgrade to Fastjson 2.0.x for improved security, as noted in the README.
Migration from Fastjson 1.x to 2.0.x involves breaking changes that require code adjustments, detailed in the upgrade guide, which can complicate maintenance.
Key resources like the FAQ are primarily in Chinese, limiting accessibility for non-Chinese speaking developers and potentially hindering troubleshooting.