PSeitz / serde_json_borrow

Fast JSON deserialization on borrowed data
MIT License
70 stars 11 forks source link

chore: implement `From<&'a serde_json::Value>` for `Value<'a>` #18

Closed ssddOnTop closed 1 month ago

ssddOnTop commented 2 months ago

we already have a function to convert Value to serde_json::Value

but in many cases conversion from From<&'a serde_json::Value> to Value<'a> is quite useful especially when there is almost 0 allocation.

ssddOnTop commented 2 months ago

@PSeitz can I get a quick review pls

PSeitz commented 1 month ago

Thanks, that makes sense to add