You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if Poison should implement a special handling for deserializing a MapSet to avoid this error, because MapSet is more or less a list, not a map.
The text was updated successfully, but these errors were encountered:
Poison encodes a
MapSet
into a list:But when trying to deserialize a JSON list as a
MapSet
, it fails:The reason for the
BadMapError
is, that Poison tries to deserialize it as a simple struct, which is a map, not a list:poison/lib/poison/decoder.ex
Lines 33 to 35 in ac89db9
I am wondering if Poison should implement a special handling for deserializing a
MapSet
to avoid this error, becauseMapSet
is more or less a list, not a map.The text was updated successfully, but these errors were encountered: