apatrida
09/08/2016, 11:53 AMimport com.fasterxml.jackson.module.kotlin.*
then change your readValue to:
val info: UserInfo = jsonMapper.readValue(info)
or:
val info = jsonMapper.readValue<UserInfo>(info)
this will help you out later when you have more complex generics so you don't hit type erasure.