addDeserializer(ReadableInstant.class, DateTimeDeserializer.forType(ReadableInstant.class));
addDeserializer(Duration.class, new DurationDeserializer());
// then serializers:
addSerializer(DateTime.class, new DateTimeSerializer());
addSerializer(LocalDateTime.class, new LocalDateTimeSerializer());
addSerializer(LocalDate.class, new LocalDateSerializer());
addSerializer(DateMidnight.class, new DateMidnightSerializer());
addSerializer(Period.class, ToStringSerializer.instance);
addSerializer(Duration.class, new DurationSerializer());
}