feign-jackson1

This module adds support for encoding and decoding JSON via Jackson1.

License

License

Categories

Categories

Feign Net HTTP Clients Jackson Data JSON ORM
GroupId

GroupId

com.marvinformatics.feign
ArtifactId

ArtifactId

feign-jackson1
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

feign-jackson1
This module adds support for encoding and decoding JSON via Jackson1.
Project URL

Project URL

https://github.com/velo/feign-jackson1/
Source Code Management

Source Code Management

https://github.com/velo/feign-jackson1/

Download feign-jackson1

How to add to project

<!-- https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/ -->
<dependency>
    <groupId>com.marvinformatics.feign</groupId>
    <artifactId>feign-jackson1</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/
implementation 'com.marvinformatics.feign:feign-jackson1:0.1'
// https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/
implementation ("com.marvinformatics.feign:feign-jackson1:0.1")
'com.marvinformatics.feign:feign-jackson1:jar:0.1'
<dependency org="com.marvinformatics.feign" name="feign-jackson1" rev="0.1">
  <artifact name="feign-jackson1" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.marvinformatics.feign', module='feign-jackson1', version='0.1')
)
libraryDependencies += "com.marvinformatics.feign" % "feign-jackson1" % "0.1"
[com.marvinformatics.feign/feign-jackson1 "0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.netflix.feign : feign-core jar 8.16.2
org.codehaus.jackson : jackson-core-asl jar 1.9.9
org.codehaus.jackson : jackson-mapper-asl jar 1.9.9

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
com.squareup.okhttp : mockwebserver jar 2.7.5
com.squareup.okhttp : okhttp jar 2.7.5
com.squareup.okio : okio jar 1.6.0
org.assertj : assertj-core jar 1.7.1

Project Modules

There are no modules declared in this project.

Jackson1 Codec

Build Status Coverage Status Maven Central Issues Forks Stars

This module adds support for encoding and decoding JSON via Jackson1.

This is pretty much a copy of https://github.com/Netflix/feign/tree/master/jackson, but different Jackson version

Add JacksonEncoder and/or JacksonDecoder to your Feign.Builder like so:

GitHub github = Feign.builder()
                     .encoder(new JacksonEncoder())
                     .decoder(new JacksonDecoder())
                     .target(GitHub.class, "https://api.github.com");

If you want to customize the ObjectMapper that is used, provide it to the JacksonEncoder and JacksonDecoder:

ObjectMapper mapper = new ObjectMapper()
        .setSerializationInclusion(JsonInclude.Include.NON_NULL)
        .configure(SerializationFeature.INDENT_OUTPUT, true)
        .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

GitHub github = Feign.builder()
                     .encoder(new JacksonEncoder(mapper))
                     .decoder(new JacksonDecoder(mapper))
                     .target(GitHub.class, "https://api.github.com");

Versions

Version
0.1