LocalDateTimeWithInfinitySerializer
Writes a LocalDateTime the way a timestamp column holds it, so that (payload->>'taken')::timestamp reads back what was put in.
LocalDateTime.Companion.DISTANT_FUTURE and LocalDateTime.Companion.DISTANT_PAST mean infinity and -infinity in a column, and the default serializer writes them out in full at a year a timestamp cannot hold, that type reaching 294276 AD. Outside the markers, every year outside 0001..9999 is spelled in a way PostgreSQL will not read - see PgDateText.
Registered contextually by octaviusSerializersModule; @Contextual on the property is what selects it.