Function get_as_bytes

Source
pub fn get_as_bytes(val: &Value, key: &str) -> Option<Vec<u8>>
Expand description

Retrieves bytes from a JSON object under a specific key. Combines get_key and get_bytes to extract and convert the value. Returns None if the key doesn’t exist or conversion fails.