@@ -0,0 +1,567 @@
+package com.pm.server.utils;%0A%0Aimport org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Apublic final class JsonUtils %7B%0A%0A%09private final static Logger log =%0A%09%09%09LogManager.getLogger(JsonUtils.class.getName());%0A%0A%09private final static ObjectMapper objectMapper = new ObjectMapper();%0A%0A%09private JsonUtils() %7B%0A%09%7D%0A%0A%09public static %3CT%3E String objectToJson(T object) %7B%0A%09%09try %7B%0A%09%09%09return objectMapper.writeValueAsString(object);%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%09%09%09log.debug(e);%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create JsonUtils class for converting objects to json strings