pub fn parse_bytes<T>(bytes: &[u8]) -> Result<T, CommonError>where
T: for<'de> Deserialize<'de>,Expand description
Parse JSON from borrowed bytes with temporary allocation
Use this when you have borrowed bytes that need to be parsed but can’t be mutated. This creates a temporary copy for parsing.