Skip to content

Map<Int, V> and other non-string-key maps aren't decoded #67

Description

@devcrocod

JsonMapDecoder assumes map keys are strings. Maps with non-string primitive keys (like Map<Int, V>), which kotlinx.serialization supports by encoding the key as a string and converting back, aren't handled.

See JsonMapDecoder.kt.

Needs key-type conversion added, matching how kotlinx.serialization's other JSON formats handle non-string map keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingseverity: mediumMedium severity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions