Function get_bytes

Source
pub fn get_bytes(val: &Value) -> Option<Vec<u8>>
Expand description

Extracts bytes from a Value. Supports arrays of u64 (converted to u8) or base64-encoded strings. Returns None for unsupported types. Differs from get_as_bytes by operating directly on the Value rather than extracting from an object key.