public final class JsonUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JsonUtil.JacksonObjectMapper |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
getInstance() |
static com.fasterxml.jackson.databind.ObjectMapper |
newInstance() |
static <T> T |
parse(byte[] bytes,
Class<T> valueType) |
static <T> T |
parse(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static <T> T |
parse(InputStream in,
Class<T> valueType) |
static <T> T |
parse(InputStream in,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static <T> T |
parse(String content,
Class<T> valueType) |
static <T> T |
parse(String content,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static <T> List<T> |
parseArray(String content,
Class<T> valueTypeRef) |
static com.fasterxml.jackson.databind.JsonNode |
readTree(byte[] content) |
static com.fasterxml.jackson.databind.JsonNode |
readTree(InputStream in) |
static com.fasterxml.jackson.databind.JsonNode |
readTree(com.fasterxml.jackson.core.JsonParser jsonParser) |
static com.fasterxml.jackson.databind.JsonNode |
readTree(String jsonString) |
static <T> String |
toJson(T value) |
static byte[] |
toJsonAsBytes(Object object) |
static Map<String,Object> |
toMap(String content) |
static <T> Map<String,T> |
toMap(String content,
Class<T> valueTypeRef) |
static <T> T |
toPojo(com.fasterxml.jackson.databind.JsonNode resultNode,
Class<T> toValueType) |
static <T> T |
toPojo(Map fromValue,
Class<T> toValueType) |
public static <T> String toJson(T value)
public static byte[] toJsonAsBytes(Object object)
public static <T> T parse(String content, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
public static <T> T parse(byte[] bytes,
Class<T> valueType)
public static <T> T parse(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
public static <T> T parse(InputStream in, Class<T> valueType)
public static <T> T parse(InputStream in, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
public static <T> T toPojo(com.fasterxml.jackson.databind.JsonNode resultNode,
Class<T> toValueType)
public static com.fasterxml.jackson.databind.JsonNode readTree(String jsonString)
public static com.fasterxml.jackson.databind.JsonNode readTree(InputStream in)
public static com.fasterxml.jackson.databind.JsonNode readTree(byte[] content)
public static com.fasterxml.jackson.databind.JsonNode readTree(com.fasterxml.jackson.core.JsonParser jsonParser)
public static com.fasterxml.jackson.databind.ObjectMapper getInstance()
public static com.fasterxml.jackson.databind.ObjectMapper newInstance()
Copyright © 2022. All rights reserved.