pub fn find_str(
    pattern: &str,
    value: &str
) -> Result<Vec<Value>, ParseOrJsonError>
Expand description

Find a pattern in the provided JSON string. 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
  • If the provided value fails to deserialize