Skip to content

Poison does not encode tuples, no mention in docs #190

@BourgeoisBear

Description

@BourgeoisBear

Using v3.1, tuples do not encode:

iex(1)> Poison.encode({1, 2})
{:error, {:invalid, {1, 2}}}

I think encoding to an array would be more robust. If that is a no-go, documenting the inability to encode tuples would be an improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions