Skip to content Skip to sidebar Skip to footer

Jsonview In Spring + Kotlin

Server returns empty json with JsonView: [ { }, { } ] I use only Jackson2ObjectMapperBuilder bean to configure jackson: @Bean open fun objectMapperBuilder() = Jackson2ObjectMapper

Solution 1:

I was running into the same problem until I added the following dependency:

compile 'com.fasterxml.jackson.module:jackson-module-kotlin'

Post a Comment for "Jsonview In Spring + Kotlin"