In the end I just use the standard serializationLibrary which is GSON. With it there are no problems with unknownProperties.
configOptions.set(
mapOf(
Pair("dateLibrary", "java8"),
Pair("enumPropertyNaming", "UPPERCASE"),
),
)