Package com.gpudb.util.json
Class JsonUtils
java.lang.Object
com.gpudb.util.json.JsonUtils
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanisListOfRecordBase(List<T> list) static <T> booleanisListOfStrings(List<T> list) static booleanisListOfValidJsonStrings(List<String> list) Deprecated, for removal: This API element is subject to removal in a future version.static booleanisValidJson(String jsonStr) static booleanisValidJson(List<String> list) static booleanisValidJsonArray(String jsonStr) static StringtoJsonArray(List<String> list) Converts a Listto a JSON array where each element is a valid JSON String static StringtoJsonString(Object value) Wrapper for ObjectMapper().writeValueAsString that throws GPUdbException
Method Details
isListOfValidJsonStrings
@Deprecated(since=“7.2.3”, forRemoval=true) public static boolean isListOfValidJsonStrings(List<String> list) Deprecated, for removal: This API element is subject to removal in a future version.toJsonString
Wrapper for ObjectMapper().writeValueAsString that throws GPUdbExceptionParameters:value- - object to convert to JSON stringReturns:a JSON string representation of the given objectThrows: