public class JacksonUtils extends Object
| 构造器和说明 |
|---|
JacksonUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
fromJson(byte[] bytes,
Class<T> type) |
static <T> T |
fromJson(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
static <T> T |
fromJson(String jsonStr,
Class<T> type) |
static <T> T |
fromJson(String jsonStr,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
static byte[] |
toJsonByte(Object obj) |
static String |
toJsonString(Object obj) |
public static <T> T fromJson(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
public static <T> T fromJson(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
public static <T> T fromJson(byte[] bytes,
Class<T> type)
public static byte[] toJsonByte(Object obj)
Copyright © 2023. All rights reserved.