Skip to content

Serialize Kotlin tuples as JSON arrays #72

@gaborkr

Description

@gaborkr

A Kotlin Pair(firstValue, secondValue) can be represented in JSON as an array: [firstValue, secondValue]. A JSON array of two elements can be represented as a Kotlin Pair.
Jackson should support this for all tuple types.

Add a new flag to SerializationFeature and DeserializationFeature that enables this conversion (although it would make sense for this to be the default).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions