Function get_key

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

Retrieves the value associated with a key from a JSON object. Returns None if the Value is not an object or the key doesn’t exist. Differs from type-specific getters like get_as_string by returning the raw Value.