pub fn serde_pointer<'a>(
value: &'a Value,
segments: &[&str],
) -> Option<&'a Value>Expand description
Resolve path segments against a serde_json::Value, for a
#[repe(nested_serde)] field.
Objects are indexed by key and arrays by decimal position, matching RFC 6901 evaluation; this takes already-split segments because the struct router has them in that form and the pointer string does not exist.
None means the path does not resolve, which the caller reports as
StructError::InvalidPath.