public class JacksonJsonFormatter extends Object implements JsonFormatter
JsonFormatter.| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
JacksonJsonFormatter() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
boolean |
isPrettyPrint() |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
void |
setPrettyPrint(boolean prettyPrint) |
String |
toJsonString(Map m) |
public static final int BUFFER_SIZE
public String toJsonString(Map m) throws IOException
toJsonString in interface JsonFormatterIOExceptionpublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
Copyright © 2012–2016. All rights reserved.