Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Overview

Jackson data format module for reading and writing Ion encoded data.

Project is licensed under Apache License 2.0.

Status

Since version 2.8 this module is considered complete and production ready. All Jackson layers (streaming, databind, tree model) are supported.

To use this extension on Maven-based projects, use following dependency:

<dependency>
  <groupId>com.fasterxml.jackson.dataformat</groupId>
  <artifactId>jackson-dataformat-ion</artifactId>
  <version>2.9.1</version>
</dependency>

Usage

Basic usage is by using IonObjectMapper instead of basic ObjectMapper; or, if only using streaming parser/generator, IonFactory instead of JsonFactory.

ObjectMapper mapper = new IonObjectMapper();
// and then read/write data as usual
SomeType value = ...;
byte[] encoded = mapper.writeValueAsBytes(value);
SomeType otherValue = mapper.readValue(data, SomeType.class);

Documentation

See Wiki (includes Javadocs)