As a follow-up of https://github.com/spring-projects/spring-framework/issues/34410 and #24238, we should introduce a spring.mvc.converters.preferred-json-mapper=kotlinx
option that reproduces the behavior prior to the Spring Framework change. This would bring back the kotlin serialization converter ahead of the Jackson one.
Comment From: dmitrysulman
@bclozel @sdeleuze I opened a PR that introduces Kotlin Serialization auto-configuration. It also adds a new kotlin-serialization
option to the spring.http.converters.preferred-json-mapper
property to restore the previous behavior before the Spring Framework change.
Happy to hear your thoughts!