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
but any time I want to use to_json() I get this error: Error("key must be a string", line: 0, column: 0)
I tried a number of different approaches to fix this by implementing serialize for [u8,32] myself but eventually I always got the same error.
As far as I see from the docs all used types (BTreeMap,[u8; 32],Vec, PathBuf) are supported by serde.
The text was updated successfully, but these errors were encountered:
Hi, I don't know if this issue belongs here or to serde itself.
I try to serialize this object
but any time I want to use
to_json()
I get this error:Error("key must be a string", line: 0, column: 0)
I tried a number of different approaches to fix this by implementing serialize for
[u8,32]
myself but eventually I always got the same error.As far as I see from the docs all used types (
BTreeMap
,[u8; 32]
,Vec
,PathBuf
) are supported by serde.The text was updated successfully, but these errors were encountered: