pub fn parse_json_bytes<T: DeserializeOwned>(data: &mut [u8]) -> Result<T>Expand description
Safe JSON parsing from bytes with UTF-8 validation
This function validates UTF-8 before parsing to prevent undefined behavior when processing potentially untrusted byte data from WebSocket frames or HTTP responses.