We want to make sure that json conversions work. While this could be worked around by using another format, it would be good to support this and it's really easy.
The issue was that I had HashMap<SomeStruct, ...> where SomeStruct was hashable, but that can't be used by serde_json. There was supposedly support for using Display and FromStr, but the FromStr doesn't appear to get used by serde. Maybe there is a way to use it in that way, but the better approach is to use
We want to make sure that json conversions work. While this could be worked around by using another format, it would be good to support this and it's really easy.
The issue was that I had
HashMap<SomeStruct, ...>
whereSomeStruct
was hashable, but that can't be used byserde_json
. There was supposedly support for usingDisplay
andFromStr
, but theFromStr
doesn't appear to get used by serde. Maybe there is a way to use it in that way, but the better approach is to use