deserialize list of strings into JSON in kotlin
I’m trying to deserialize the following string into JSON val myList ="""{"user_id": "id1" ,"old_user_ids": "["id1,id2,id3"]", "status":"ACTIVE"}""" I tried to deserialize using val record = objectMapper.readValue(myList, UserRecord::class.java) my data class looks like this data class UserRecord( var user_id: String = "", var old_user_ids: List<String> = emptyList(), var status: String = "" ) however, I’m getting the… Read More deserialize list of strings into JSON in kotlin