nikhil kumar

    nikhil kumar

    5 months ago
    Hey, Has anyone tried to serialize Map<String, Any> ?
    Grégory Lureau

    Grégory Lureau

    5 months ago
    On which platforms? What's your problem?
    nikhil kumar

    nikhil kumar

    5 months ago
    I am using kotlinx.serialization to serialize Map<String, Any>. But its showing Serializer has. not been found for type ‘Any’
    Grégory Lureau

    Grégory Lureau

    5 months ago
    You may want to check #serialization
    Also your error message makes sense, I presume serializer cannot be determined magically, and using reflection may not be the best cross-platform approach (giving it's not available on all platforms afaik).
    hfhbd

    hfhbd

    5 months ago
    Depending on your use case (internal/external serialization) and the number of classes I would prefer to use sealed classes.