public class Jackson extends Json
Modifier and Type | Field and Description |
---|---|
protected Boolean |
generateNullValue |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
datePattern
Constructor and Description |
---|
Jackson() |
Modifier and Type | Method and Description |
---|---|
protected void |
config() |
static Jackson |
getJson() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
通过获取 ObjectMapper 进行更个性化设置,满足少数特殊情况
|
<T> T |
parse(String jsonString,
Class<T> type) |
static void |
setDefaultGenerateNullValue(boolean defaultGenerateNullValue) |
Jackson |
setGenerateNullValue(boolean generateNullValue) |
String |
toJson(Object object) |
getDatePattern, getDefaultDatePattern, setDatePattern
protected Boolean generateNullValue
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected void config()
public static void setDefaultGenerateNullValue(boolean defaultGenerateNullValue)
public Jackson setGenerateNullValue(boolean generateNullValue)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static Jackson getJson()
Copyright © 2018. All rights reserved.