public class JsonUtil extends Object
static com.fasterxml.jackson.databind.ObjectMapper
MAPPER
JsonUtil()
static <T> List<T>
parseList(String json, Class<T> type)
static <T> T
parseObject(String json, Class<T> type)
static String
toJSON(Object obj)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static com.fasterxml.jackson.databind.ObjectMapper MAPPER
public JsonUtil()
public static String toJSON(Object obj)
obj
public static <T> T parseObject(String json, Class<T> type)
T
json
type
public static <T> List<T> parseList(String json, Class<T> type)
Copyright © 2021. All rights reserved.