thanksforallthefish
04/23/2021, 2:25 PM@JsonAnyGetter
from jackson in kotlinx serialization? or, assuming I have a json like
{
field: value,
second: value,
another: value
}
how can I map into something a class like
@Serializable
class MyClass(val field: String, val additional: Map<String, String>)
?
bonus question, coming from jackson, I spent most of day trying to figure out how to handle val additional: Map<String, Any>
, but that is not really possible with kotlin serialization right?ephemient
04/23/2021, 2:51 PMthanksforallthefish
04/23/2021, 4:44 PM