Skip to main content

extract_values

Function extract_values 

Source
pub fn extract_values(bytes: &[u8], key: &str) -> Vec<Value>
Expand description

Extract every value paired with key at any depth. Uses find_key_positions to locate each "key": site and then parses the single value that follows via a streaming serde_json::Deserializer (stops at the end of the first value — not the whole document).

Parse failures are silently skipped; they should never arise on valid JSON input, and we refuse to panic on malformed payloads.