Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
June 27, 2020 00:58
March 29, 2020 15:35
March 5, 2023 16:01
January 19, 2017 19:18
October 29, 2022 16:48
May 21, 2021 15:22
November 26, 2022 19:13
November 26, 2022 16:34
March 5, 2023 16:18
March 5, 2023 16:18
May 24, 2021 17:14



Build Status Coverage Status

Managed By Self XDSD DevOps By We recommend IntelliJ IDEA OpenJDK Quality Outreach


YAML for Java 8 and above. Based on spec 1.2.

From the specification: YAML™ is a human-friendly, cross language, Unicode based data serialization language.

To get the latest release from Maven Central, simply add the following to your pom.xml:


or download the fat jar.

If you use Gradle, add this to your dependencies:

implementation group: 'com.amihaiemil.web', name: 'eo-yaml', version: '7.0.5'

The releases are also available on Github Packages!


The API of this library is clean, intuitive and generally close to the javax.json API that most developers are used to. Just start from the com.amihaiemil.eoyaml.Yaml class, it offers all the builders and readers you may need.

See the Block Style Yaml wiki for a first glance.

Features detailed (ongoing work!)

Here is what we have so far:

  • Building and Reading Block YAML (wiki);
  • Support for Folded and Literal Block Scalars (wiki);
  • Convenience Type-Casting Methods (wiki);
  • Editing of YAML (wiki);
  • Support for Comments (wiki);
  • Convenient YamlPrinter (wiki);
  • Easy Extension Thanks to Interfaces (wiki);
  • Building and Reading YAML Streams, integrated with Java 8's Stream API (wiki);
  • Java Beans to YAML (wiki);
  • Others:
    • Clear and detailed Exceptions. For instance, in the case of bad indentation, it will tell you exactly which line is problematic and why.
    • Fully encapsulated. The user works only with a few Java Interfaces.
    • All objects are immutable and thread-safe.
    • It can be used as a Java Module (if you're on JDK 9+).
    • It is lightweight! It has 0 dependencies.

Also, you can have a look under src/test/resources to see the kinds of YAML that the library can read and handle so far.

Here is what we're still missing and working on:

  • Flow and Recursive representation
  • Aliases and anchors
  • YAML to Java Bean

Keep in mind that the library is based on interfaces and OOP best practices, so you can probably extend/decorate the objects in order to create the functionality you need, if it's not yet implemented.

If you have some time and like the library, please consider contributing.


Contributors are welcome!

  1. Open an issue regarding an improvement you thought of, or a bug you noticed, or ask to be assigned to an existing one.
  2. If the issue is confirmed, fork the repository, do the changes on a separate branch and make a Pull Request.
  3. After review and acceptance, the PR is merged and closed.

Make sure the maven build

$ mvn clean install -Pcheckstyle,itcases

passes before making a PR.