Skip to main content

number_key

Function number_key 

Source
pub fn number_key(value: &Value, keys: &[&str]) -> Option<u64>
Expand description

Recursively search a JSON value for the first matching numeric value by candidate key names. Accepts both JSON numbers and stringified integers.