Class JsonUtils
java.lang.Object
com.hw.langchain.chains.query.constructor.JsonUtils
- Author:
- HamaWhite
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
convertFromJsonStr
(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) static <T> T
convertFromJsonStr
(String jsonStr, Class<T> clazz) static String
toJsonStringWithIndent
(Object object) static String
toJsonStringWithIndent
(Object object, int indent) static String
writeValueAsString
(Object object)
-
Method Details
-
toJsonStringWithIndent
-
toJsonStringWithIndent
-
writeValueAsString
-
convertFromJsonStr
-
convertFromJsonStr
public static <T> T convertFromJsonStr(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
-