public class JackSonUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
JSON |
static org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
JackSonUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
toJson(Object o) |
static Map<String,Object> |
toMap(String str) |
static <T> T |
toObject(String str,
Class<T> cs) |
static <T> List<T> |
toObjectList(String str,
Class<T> clsChild) |
static <T> List<T> |
toObjectListByType(String str)
注意,此种方法返回的 java.util.LinkedHashMap
|
static <T> Map<String,T> |
toObjectMap(String str,
Class<T> vCls) |
Copyright © 2024. All rights reserved.