Class JsonUtil
java.lang.Object
io.clonecloudstore.common.quarkus.properties.JsonUtil
Utility class for Json to get the Jackson ObjectMapper, either from CDI of Quarkus, or from
scratch if not in CDI (but should, in that case a Warning will be raised)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.ObjectMapper
-
Method Details
-
getInstance
public static com.fasterxml.jackson.databind.ObjectMapper getInstance()- Returns:
- an ObjectMapper, either the one in the Quarkus CDI or a from scratch if none exists yet
-
getInstanceNoNull
public static com.fasterxml.jackson.databind.ObjectMapper getInstanceNoNull()- Returns:
- an ObjectMapper with No Null field serialization
-