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
serde_json_borrow::Value is often useful as an intermediate value when deserializing, and so it would be nice to be able to deserialize from a serde_json_borrow::Value in the same way that one can from a serde_json::Value. Note that serde_json::Value implements serde::Deserializer and serde::de::IntoDeserializer, and serde_json also provides the helpful serde_json::from_value function to deserialize from a serde_json::Value.
The text was updated successfully, but these errors were encountered:
Sorry for the late reply.
I think that would be a good addition to reach feature parity. I would accept an PR for that.
And just as a heads up, I consider removing the limitation that keys in objects are not allowed to have any JSON escaping characters. (maybe as a feature flag)
And just as a heads up, I consider removing the limitation that keys in objects are not allowed to have any JSON escaping characters. (maybe as a feature flag)
Would it be possible to implement
serde::Deserializer<'ctx>
/serde::de::IntoDeserializer
forserde_json_borrow::Value<'ctx>
?serde_json_borrow::Value
is often useful as an intermediate value when deserializing, and so it would be nice to be able to deserialize from aserde_json_borrow::Value
in the same way that one can from aserde_json::Value
. Note thatserde_json::Value
implementsserde::Deserializer
andserde::de::IntoDeserializer
, andserde_json
also provides the helpfulserde_json::from_value
function to deserialize from aserde_json::Value
.The text was updated successfully, but these errors were encountered: