- Notifications
You must be signed in to change notification settings - Fork43
Jackson datatype module for Vavr
License
NotificationsYou must be signed in to change notification settings
vavr-io/vavr-jackson
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Jackson datatype module forVavr library
<dependency> <groupId>io.vavr</groupId> <artifactId>vavr-jackson</artifactId> <version>0.10.3</version></dependency>
compile("io.vavr:vavr-jackson:0.10.3")
Just register a new instance ofVavrModule
ObjectMappermapper =newObjectMapper();mapper.registerModule(newVavrModule());
Stringjson =mapper.writeValueAsString(List.of(1));// = [1]List<Integer>restored =mapper.readValue(json,newTypeReference<List<Integer>>() {});// = List(1)
Developer versions can be foundhere.
<dependency> <groupId>io.vavr</groupId> <artifactId>vavr-jackson</artifactId> <version>0.10.6-SNAPSHOT</version></dependency>
Ensure that your~/.m2/settings.xml
contains the following:
<profiles> <profile> <id>allow-snapshots</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile></profiles>
compile("io.vavr:vavr-jackson:0.10.6-SNAPSHOT")
Ensure that yourbuild.gradle
contains the following:
repositories { mavenCentral() maven { url"https://oss.sonatype.org/content/repositories/snapshots" }}
About
Jackson datatype module for Vavr
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.