mapper.getSerializationConfig().setSerializationInclusion(
JsonSerialize.Inclusion.NON_NULL);
mapper.configure(
SerializationConfig.Feature.INDENT_OUTPUT, true);
SimpleModule conversionModule = new SimpleModule("ConversionsModule", new Version(1, 0, 0, null))
.addSerializer(Money.class, new MoneySerializer())
.addSerializer(DecimalQuantity.class, new DecimalQuantitySerializer())
.addSerializer(Percentage.class, new PercentageSerializer())
.addDeserializer(Percentage.class, new PercentageDeserializer())
.addSerializer(DateTime.class, new DateTimeSerializer());