Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Java
  3. Yasson

Yasson

NOASSERTIONJava3.0.4

A Java framework providing a standard binding layer between Java classes and JSON documents, implementing JSON-B (JSR-367).

Visit WebsiteGitHubGitHub
217 stars107 forks0 contributors

What is Yasson?

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.

Target Audience

Java developers building applications that require JSON serialization and deserialization, particularly those working within the Jakarta EE ecosystem or needing standards-compliant JSON binding.

Value Proposition

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.

Overview

Eclipse Yasson project

Use Cases

Best For

  • Implementing JSON serialization in Jakarta EE applications
  • Converting Java objects to JSON with minimal configuration
  • Customizing JSON mapping using annotations
  • Programmatically configuring JSON binding behavior
  • Ensuring standards compliance with JSON-B (JSR-367)
  • Replacing JAXB-like functionality for JSON in Java projects

Not Ideal For

  • Projects requiring ultra-high performance JSON processing with streaming or low-latency needs
  • Teams already deeply integrated with Jackson or Gson and unwilling to migrate custom serializers
  • Applications that demand extensive third-party integrations or plugins beyond the JSON-B specification
  • Lightweight microservices where minimal dependency footprint is more critical than standards compliance

Pros & Cons

Pros

Standards Compliance

As the official reference implementation of JSON-B (JSR-367), Yasson ensures full specification adherence, making it reliable for Jakarta EE and enterprise applications.

Sensible Default Mapping

Automatically converts Java objects to JSON with minimal configuration, as shown in the default JsonbBuilder.create() example, reducing boilerplate for common cases.

Rich Customization Options

Supports annotations and a programmatic API for fine-grained control over serialization, allowing developers to tailor JSON binding to complex scenarios.

JAXB-like Familiarity

Provides a similar binding layer for JSON as JAXB does for XML, easing the transition for developers experienced with XML-based systems.

Cons

Limited Ecosystem

Compared to Jackson or Gson, Yasson has fewer community plugins, extensions, and integrations, which can hinder adoption in projects relying on third-party tools.

Performance Trade-offs

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.

Verbose Advanced Configuration

The programmatic API for complex customizations can be cumbersome and require deep knowledge of the JSON-B specification, increasing the learning curve.

Frequently Asked Questions

Quick Stats

Stars217
Forks107
Contributors0
Open Issues104
Last commit1 day ago
CreatedSince 2016

Tags

#json-deserialization#jakarta-ee#java#json-serialization#reference-implementation

Built With

J
Java

Links & Resources

Website

Included in

Java47.5k
Auto-fetched 18 hours ago

Related Projects

FastjsonFastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

Stars25,611
Forks6,405
Last commit2 years ago
GsonGson

A Java serialization/deserialization library to convert Java Objects into JSON and back

Stars24,224
Forks4,456
Last commit1 day ago
MoshiMoshi

A modern JSON library for Kotlin and Java.

Stars10,149
Forks809
Last commit2 days ago
JacksonJackson

Main Portal page for the Jackson project

Stars9,775
Forks1,220
Last commit7 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub