Open A-Manning opened 9 months ago
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)
can you give an example of some failing case
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
.