tree: 14a86f117aaf3ea752fa40e26145ec88a33d83e7 [path history] [tgz]
  1. .gitignore
  2. README.md
  3. build-overlay/
  4. pom.xml
  5. src/
juneau-examples/juneau-examples-core/README.md

Juneau Core Examples

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>

JSON Examples

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 POJOs
  • JsonConfigurationExample - How to create JsonParser and Seralizer with different properties set.

XML Examples

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 POJOs

RDF Examples

Juneau 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