Skip to main content

get_path_ref

Function get_path_ref 

Source
pub fn get_path_ref<'a>(
    root: &'a Value,
    path: &str,
    keyed_lists: &[KeyedList<'_>],
) -> DocumentResult<&'a Value>
Expand description

Get a value at the given dot-path.

Handles:

  • Object field access (any level of nesting)
  • KeyedList access (Vec slug routing)
  • Greedy key matching for keys containing ‘.’