Function find

Source
pub fn find<'a>(
    pattern: &str,
    value: &'a Value,
) -> Result<Vec<&'a Value>, ParseError>
Expand description

Find a pattern in the provided JSON value. Recompiles the pattern every call, if the same pattern is used a lot should instead try using JsonPath::compile.

ยงErrors

  • If the provided pattern fails to parse as a valid JSON path