@@ -0,0 +1,1344 @@
+package converters;%0A%0Aimport com.fasterxml.jackson.core.JsonProcessingException;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Convert objects from and to json.%0A */%0Apublic class JsonConverter %7B%0A    private static ObjectMapper mapper = new ObjectMapper();%0A%0A    /**%0A     * Convert object to json string.%0A     *%0A     * @param obj object that will be serialized to string.%0A     * @return string with serialized object.%0A     */%0A    public static String objectToJsonString(Object obj) %7B%0A        String objToJson = null;%0A        try %7B%0A            objToJson = mapper.writeValueAsString(obj);%0A        %7D catch (JsonProcessingException e) %7B%0A            e.getStackTrace();%0A        %7D%0A        return objToJson;%0A    %7D%0A%0A    /**%0A     * Convert json string into object of defined type.%0A     *%0A     * @param jsonString string that will be deserialize into object of type T.%0A     * @param objClass class used to deserialize object.%0A     * @param %3CT%3E type to be used to deserialize.%0A     * @return object of type T.%0A     */%0A    public static %3CT%3E T jsonStringToObject(String jsonString, Class%3CT%3E objClass) %7B%0A        T object = null;%0A        try %7B%0A            object = mapper.readValue(jsonString, objClass);%0A        %7D%0A        catch (IOException e) %7B%0A            e.getStackTrace();%0A        %7D%0A%0A        return object;%0A    %7D%0A%0A%7D%0A

Add jsonConverter.