hello :slightly_smiling_face:. is there something ...
# serialization
t
hello 🙂. is there something similar to
@JsonAnyGetter
from jackson in kotlinx serialization? or, assuming I have a json like
Copy code
{
  field: value,
  second: value,
  another: value
}
how can I map into something a class like
Copy code
@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?
e
sounds doable with a custom serializer, but it'll only work for json
t
I only care about json, at least for now. thanks for the heads up