pub fn get_nested_value(doc: &Value, parts: &[&str]) -> Option<Value>Expand description
Read a value at any depth from a JSON object using a dot-notation path.
parts is the path split by ‘.’: [“meta”, “logins”] reads doc.meta.logins.
Returns Some(value) if the full path exists, None if any part is missing.
The returned value is cloned — the caller owns it.