Juneau Core Examples provide some insight on how to leverage Juneau within your applications.
Juneau Core is focused on serialization and deserialization, these examples are focused on how to use Juneau to serialize and deserialize your POJOs.
To use any of the examples, you need to add Apache Juneau as a dependency
<dependency> <groupId>org.apache.juneau</groupId> <artifactId>juneau-core</artifactId> <version>${juneau.version}</version> </dependency>
Juneau provides out of the box JSON support, reading and writing JSON structures into Plain Old Java Objects (POJOs)
JsonSimpleExample
- How to use the JsonSerializer and JsonParser to convert POJOs to String and then strings back to POJOsJsonConfigurationExample
- How to create JsonParser and Seralizer with different properties set.Juneau provides out of the box XML support, reading and writing XML structures into Plain Old Java Objects (POJOs)
XmlComplexExample
- How to use the XmlSerializer and XmlParser to convert complex POJOs to String and then strings back to complex POJOsJuneau provides RDF support assuming Apache Jena is on the classpath. First, you need to add Jena to the classpath.
<dependency> <groupId>org.apache.jena</groupId> <artifactId>jena-core</artifactId> <version>${jena.version}</version> // Juneau is tested against 2.7.1 </dependency>
RDFExample
- An example on how to serialize a POJO into RDF format