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 think this was an oversight and we need generics for To/FromJSONKey to make those instances match To/FromJSON.
The reason this happens is that deriving ToJSON for some types such as "enumerables" produces a string, but the ToJSONKey instance's default is always to produce an Array of arrays instead of an object, even when the key serializes to a string.
Also, my gut feeling it would be much simpler to do this way, than try to conditionally do either one encoding, based on types' shape. We could do the breaking change later?
I think this was an oversight and we need generics for To/FromJSONKey to make those instances match To/FromJSON.
The reason this happens is that deriving ToJSON for some types such as "enumerables" produces a string, but the ToJSONKey instance's default is always to produce an Array of arrays instead of an object, even when the key serializes to a string.
The text was updated successfully, but these errors were encountered: