Function parse_json_from_vec

Source
pub fn parse_json_from_vec(data: Vec<u8>) -> Result<OwnedValue>
Expand description

Parse JSON from owned Vec<u8> with zero allocation

This function takes ownership of the Vec and parses it in-place, avoiding any allocations. This is the most efficient approach for WebSocket binary messages.