public class JacksonService extends Object
| Constructor and Description |
|---|
JacksonService() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.node.ArrayNode |
createArrayNode() |
static com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode() |
static String |
toJson(Object o) |
static com.fasterxml.jackson.databind.JsonNode |
toJsonNode(String json) |
static <T> List<T> |
toList(String json,
com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference) |
static <T> T |
toObject(String json,
Class<T> type) |
static <T> T |
toRefer(String json,
com.fasterxml.jackson.core.type.TypeReference<T> reference) |
public static <T> T toRefer(String json, com.fasterxml.jackson.core.type.TypeReference<T> reference)
public static <T> List<T> toList(String json, com.fasterxml.jackson.core.type.TypeReference<List<T>> typeReference)
public static com.fasterxml.jackson.databind.JsonNode toJsonNode(String json)
public static com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
public static com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()
Copyright © 2021 Shoothzj. All rights reserved.