Struct jsonpath_plus::JsonPath
source · [−]pub struct JsonPath { /* private fields */ }
Expand description
A compiled JSON path. Can be used to match against items any number of times, preventing recompilation of the same pattern many times.
Implementations
Compile a JSON path, which can be used to match items multiple times.
Errors
- If the provided pattern fails to parse as a valid JSON path
Find this pattern in the provided JSON value
Delete all items matched by this pattern on the provided JSON value, and return the resulting object
Replace items matched by this pattern on the provided JSON value, filling them with the value returned by the provided function, then return the resulting object
Delete items matching this pattern in the provided JSON string
Errors
- If the provided value fails to deserialize