public class JsonFeature
HttpClient feature that serializes/de-serializes as JSON custom objects to request and from response bodies using a serializer.
The default serializer is GsonSerializer.
Note: It will de-serialize the body response if the specified type is a public accessible class
and the Content-Type is application/json
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonFeature.Config |
static class |
JsonFeature.Feature |
| Modifier and Type | Field and Description |
|---|---|
static JsonFeature.Feature |
Feature |
| Constructor and Description |
|---|
JsonFeature(JsonSerializer serializer)
HttpClient feature that serializes/de-serializes as JSON custom objects
to request and from response bodies using a serializer.
|
| Modifier and Type | Method and Description |
|---|---|
JsonSerializer |
getSerializer() |
public static JsonFeature.Feature Feature
public JsonFeature(JsonSerializer serializer)
HttpClient feature that serializes/de-serializes as JSON custom objects to request and from response bodies using a serializer.
The default serializer is GsonSerializer.
Note: It will de-serialize the body response if the specified type is a public accessible class
and the Content-Type is application/json
public JsonSerializer getSerializer()