Skip to main content

get_path_ref

Function get_path_ref 

Source
pub fn get_path_ref<'a>(
    root: &'a Value,
    path: &str,
    addressing: Addressing<'_>,
) -> DocumentResult<&'a Value>
Expand description

Get a value at the given dot-path.

Handles:

  • Object field access (any level of nesting)
  • Named array access (keyed-list slug, or a format’s own array rule)
  • Greedy key matching for keys containing ‘.’