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
<dependency> <groupId>com.amihaiemil.web</groupId> <artifactId>eo-yaml</artifactId> <version>5.1.3</version> </dependency>
or download the fat jar.
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 form 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.
Here is what we have so far:
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:
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!
Make sure the maven build
$ mvn clean install -Pcheckstyle,itcases
passes before making a PR.