Thread
#serialization
    t

    thanksforallthefish

    1 year ago
    hello 🙂. is there something similar to
    @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?
    e

    ephemient

    1 year ago
    sounds doable with a custom serializer, but it'll only work for json
    t

    thanksforallthefish

    1 year ago
    I only care about json, at least for now. thanks for the heads up