Manorrock Parakeet delivers you with a light-weight YAML library that is 100% self-contained. It can be used to read and write YAML.
- Java 21
The example below writes out the Java String as YAML.
StringWriter stringWriter = new StringWriter();
YAMLWriter writer = new YAMLWriter(stringWriter);
writer.writeObject("Any object");
The example below reads in the YAML as a Java String.
StringReader stringReader = new StringReader("'this is a YAML string'");
YAMLReader reader = new YAMLReader(stringReader);
String string = reader.readObject(String.class.getName());
The Maven coordinates are as follows.
<dependency>
<groupId>com.manorrock.parakeet</groupId>
<artifactId>parakeet</artifactId>
<version>y.m.p</version>
</dependency>
See Contributing
See Code of Conduct
Note if you file issues, answer questions and/or issue pull requests you agree that those contributions will be owned by Manorrock.com and that Manorrock.com can use those contributions in any manner Manorrock.com so desires.