java.lang.Object
io.clonecloudstore.common.quarkus.properties.JsonUtil

@ApplicationScoped public final class JsonUtil extends Object
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)
  • 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