class JsonConverter implements Serializable {

    public String writeValueAsString(Object value) {
        try {
            return jsonMapper.writeValueAsString(value);
        } catch (JsonProcessingException e) {
            throw new UncheckedIOException(e);
        }
    }

      JsonConverter(ObjectMapper jsonMapper);

}