public class Jackson extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
newMinimalObjectMapper()
Creates a new minimal
ObjectMapper that will work with Dropwizard out of box. |
static com.fasterxml.jackson.databind.ObjectMapper |
newObjectMapper()
Creates a new
ObjectMapper with Guava, Logback, and Joda Time support, as well as
support for JsonSnakeCase. |
static com.fasterxml.jackson.databind.ObjectMapper |
newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory)
Creates a new
ObjectMapper with a custom JsonFactory
with Guava, Logback, and Joda Time support, as well as support for JsonSnakeCase. |
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
ObjectMapper with Guava, Logback, and Joda Time support, as well as
support for JsonSnakeCase. Also includes all Discoverable interface implementations.public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory)
ObjectMapper with a custom JsonFactory
with Guava, Logback, and Joda Time support, as well as support for JsonSnakeCase.
Also includes all Discoverable interface implementations.jsonFactory - instance of JsonFactory to use
for the created ObjectMapper instance.public static com.fasterxml.jackson.databind.ObjectMapper newMinimalObjectMapper()
ObjectMapper that will work with Dropwizard out of box.
NOTE: Use it, if the default Dropwizard's ObjectMapper, created in
newObjectMapper(), is too aggressive for you.
Copyright © 2015. All rights reserved.