public class JsonUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
deserialize(String content,
Class<T> valueType) |
static <T> ApiResponse<T> |
deserializeApiResponse(String content,
Class<T> valueType) |
static <T> List<T> |
deserializeToList(String listJson,
Class<T> valueType) |
static boolean |
isJSONValid(String content)
json字符串是否合法
|
static String |
serialize(Object object) |
public static <T> ApiResponse<T> deserializeApiResponse(String content, Class<T> valueType) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static boolean isJSONValid(String content)
content - Copyright © 2022 hellothomas. All rights reserved.