类 JsonUtil
java.lang.Object
top.tangyh.basic.jackson.JsonUtil
对 jack json 进行封装
- 作者:
- zuihou
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static com.fasterxml.jackson.databind.ObjectMapperstatic com.fasterxml.jackson.databind.ObjectMapperstatic <T> Tparse(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) static <T> Tstatic <T> Tparse(InputStream in, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) static <T> Tparse(InputStream in, Class<T> valueType) static <T> Tstatic <T> Tstatic <T> List<T>parseArray(String content, Class<T> valueTypeRef) static com.fasterxml.jackson.databind.JsonNodereadTree(byte[] content) static com.fasterxml.jackson.databind.JsonNodereadTree(com.fasterxml.jackson.core.JsonParser jsonParser) static com.fasterxml.jackson.databind.JsonNodereadTree(InputStream in) static com.fasterxml.jackson.databind.JsonNodestatic <T> StringtoJson(T value) static byte[]toJsonAsBytes(Object object) static <T> Tstatic <T> T
-
方法详细资料
-
toJson
-
toJsonAsBytes
-
parse
-
parse
public static <T> T parse(String content, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) -
parse
-
parse
public static <T> T parse(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) -
parse
-
parse
public static <T> T parse(InputStream in, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) -
parseArray
-
toMap
-
toMap
-
toPojo
-
toPojo
public static <T> T toPojo(com.fasterxml.jackson.databind.JsonNode resultNode, Class<T> toValueType) -
readTree
-
readTree
-
readTree
public static com.fasterxml.jackson.databind.JsonNode readTree(byte[] content) -
readTree
public static com.fasterxml.jackson.databind.JsonNode readTree(com.fasterxml.jackson.core.JsonParser jsonParser) -
getInstance
public static com.fasterxml.jackson.databind.ObjectMapper getInstance() -
newInstance
public static com.fasterxml.jackson.databind.ObjectMapper newInstance()
-