Skip to main content

select

Function select 

Source
pub fn select<'a>(
    value: &'a Value,
    selector: &str,
) -> Result<Option<&'a Value>, SelectorError>
Expand description

Resolve a dotted selector against a JSON value.

A valid selector that does not exist returns Ok(None). Invalid syntax returns an error so verifier configuration faults cannot look like dead credentials or missing metadata.