Skip to content

Arrays as tuples #2

@johnwright

Description

@johnwright

It's common in JSON to use arrays as tuples, e.g.

{
  "pairs": [
    [1, 2],
    [3, 4]
  ]
}

To support this pattern, add pair, triple, quad codecs (and/or tuple2, tuple3, tuple4 etc.)

When decoding arrays as tuples, unexpected extra elements should be ignored.

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