package equus.webstack.converter.json;

import java.time.LocalDate;
import java.time.ZonedDateTime;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;

@SuppressWarnings("serial")
public class CustomObjectMapper extends ObjectMapper {

  public CustomObjectMapper() {
    super();
    CustomModule module = new CustomModule();
    module.addConverter(LocalDate.class, new LocalDateJsonConverter());
    module.addConverter(ZonedDateTime.class, new ZonedDateTimeJsonConverter());
    registerModule(module);
  }

  public static class CustomModule extends SimpleModule {

    public CustomModule() {
      super();
    }

    public <T> void addConverter(Class<T> clazz, JsonConverter<T> converter) {
      addDeserializer(clazz, converter.getDeserializer());
      addSerializer(clazz, converter.getSerializer());
    }
  }
}

@@ -94,16 +94,139 @@
 eTime;%0A%0A
+import com.fasterxml.jackson.annotation.JsonInclude.Include;%0Aimport com.fasterxml.jackson.databind.DeserializationFeature;%0A
 import c
@@ -454,24 +454,138 @@
    super();%0A
+%0A    setSerializationInclusion(Include.NON_NULL);%0A    enable(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS);%0A%0A
     CustomMo

modify json config