Class JacksonObjectMapper
java.lang.Object
kong.unirest.modules.jackson.JacksonObjectMapper
- All Implemented Interfaces:
ObjectMapper
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonObjectMapper(Consumer<tools.jackson.databind.json.JsonMapper.Builder> configurations) Pass in any additional JsonMapper configurations you wantJacksonObjectMapper(tools.jackson.databind.ObjectMapper om) -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.ObjectMapper<T> T<T> TreadValue(String value, GenericType<T> genericType) writeValue(Object value)
-
Constructor Details
-
JacksonObjectMapper
public JacksonObjectMapper() -
JacksonObjectMapper
Pass in any additional JsonMapper configurations you want- Parameters:
configurations- consumer of configurations to perform on the tools.jackson.databind.JsonMapper.Builder
-
JacksonObjectMapper
public JacksonObjectMapper(tools.jackson.databind.ObjectMapper om)
-
-
Method Details
-
getJacksonMapper
public tools.jackson.databind.ObjectMapper getJacksonMapper() -
readValue
- Specified by:
readValuein interfaceObjectMapper
-
readValue
- Specified by:
readValuein interfaceObjectMapper
-
writeValue
- Specified by:
writeValuein interfaceObjectMapper
-