Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BourgeoisBear opened this issue Jul 18, 2019 · 1 comment
Open

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

BourgeoisBear opened this issue Jul 18, 2019 · 1 comment

Comments

@BourgeoisBear
Copy link

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.

@D4no0
Copy link

D4no0 commented Jan 20, 2021

Looks like this is applicable to version 4.1 too, any workarounds for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants