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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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