You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
444 B
17 lines
444 B
3 years ago
|
JSON-java Codec
|
||
|
===================
|
||
|
|
||
|
This module adds support for encoding and decoding [JSON][] via [JSON-java][].
|
||
|
|
||
|
Add `JsonEncoder` and/or `JsonDecoder` to your `Feign.Builder` like so:
|
||
|
|
||
|
```java
|
||
|
api = Feign.builder()
|
||
|
.decoder(new JsonDecoder())
|
||
|
.encoder(new JsonEncoder())
|
||
|
.target(GitHub.class, "https://api");
|
||
|
```
|
||
|
|
||
|
[JSON]: https://www.json.org/json-en.html
|
||
|
[JSON-java]: https://github.com/stleary/JSON-java
|