Class JsonUtil
java.lang.Object
io.gitbub.devlibx.easy.helper.json.JsonUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertAsMap(String str) Convert string to MapconvertAsStringObjectMap(byte[] bytes) Convert string to MapConvert string to Map<T> List<T>Convert string to List<T> TreadObject(String str, com.fasterxml.jackson.databind.JavaType cls) Read a object from string<T> TreadObject(String str, Class<T> cls) Read a object from string
-
Constructor Details
-
JsonUtil
public JsonUtil() -
JsonUtil
public JsonUtil(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Make custom JsonUtil with provided ObjectMapper
-
-
Method Details
-
readObject
Read a object from string -
readObject
Read a object from string -
readList
Convert string to List -
convertAsMap
Convert string to Map -
convertAsStringObjectMap
Convert string to Map -
convertAsStringObjectMap
Convert string to Map
-