Open Altair-Bueno opened 1 year ago
Try deserializing into <HashMap<String, serde_json::Value>>
Edit: I ran into the same issue and I need the top level structure to be a serde_json::Value to be able to dynamically traverse the object tree by a given key.
My actual workaround is:
serde_json::to_value(
serde_qs::Config::new(5, false)
.deserialize_bytes::<HashMap<String, serde_json::Value>>(&bytes)?,
Summary
Cannot deserialize query string into dynamic objects such as
serde_json::Value
ortoml::Value
Current behaviour
Deserialization fails. Serialization succeeds
Expected behaviour
Serialization and deserialization shouldn't fail on dynamic objects.
Minimal example