A Java framework providing a standard binding layer between Java classes and JSON documents, implementing JSON-B (JSR-367).
Eclipse Yasson is a Java framework that provides a standard binding layer between Java classes and JSON documents, implementing the JSON-B specification (JSR-367). It solves the problem of converting Java objects to JSON and vice versa with both default mappings and extensive customization options.
Java developers building applications that require JSON serialization and deserialization, particularly those working within the Jakarta EE ecosystem or needing standards-compliant JSON binding.
Developers choose Yasson because it is the official reference implementation of JSON-B, ensuring compliance with the specification, while offering a balance of ease-of-use with default mappings and powerful customization through annotations and a programmatic API.
Eclipse Yasson project
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
As the official reference implementation of JSON-B (JSR-367), Yasson ensures full specification adherence, making it reliable for Jakarta EE and enterprise applications.
Automatically converts Java objects to JSON with minimal configuration, as shown in the default JsonbBuilder.create() example, reducing boilerplate for common cases.
Supports annotations and a programmatic API for fine-grained control over serialization, allowing developers to tailor JSON binding to complex scenarios.
Provides a similar binding layer for JSON as JAXB does for XML, easing the transition for developers experienced with XML-based systems.
Compared to Jackson or Gson, Yasson has fewer community plugins, extensions, and integrations, which can hinder adoption in projects relying on third-party tools.
As a spec-focused implementation, it may not be optimized for raw speed in high-volume scenarios, where libraries like Jackson often outperform in benchmarks.
The programmatic API for complex customizations can be cumbersome and require deep knowledge of the JSON-B specification, increasing the learning curve.