import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; final class JsonTools { static final ObjectMapper deserializationObjectMapper = new ObjectMapper(new YAMLFactory()) .configure( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false ); static final ObjectMapper serializationObjectMapper = new ObjectMapper() .configure(SerializationFeature.INDENT_OUTPUT, true); private JsonTools() {} }