Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Simple Jackson library for some datatypes in Apache Commons Lang3

Notifications You must be signed in to change notification settings

bramp/jackson-datatype-commons-lang3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Jackson library for some datatypes in Apache Commons Lang3

Right now only the Fraction class is supported

Usage

    <groupId>net.bramp.jackson</groupId>
    <artifactId>jackson-datatype-commons-lang3</artifactId>
    <version>1.0</version>
	import net.bramp.jackson.lang3.LangModule
	...

    mapper = new ObjectMapper();
    mapper.registerModule(new LangModule());

Examples

class Demo {
	Fraction fraction1 = Fraction.getFraction(1, 2);
	Fraction fraction2 = Fraction.getFraction(30000, 1001);
}
{
	"fraction1": "1/2",
	"fraction2": "29 971/1001"
}

About

Simple Jackson library for some datatypes in Apache Commons Lang3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages