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

Find this pattern in the provided JSON string

Errors
  • If the provided value fails to deserialize

Delete items matching this pattern in the provided JSON string

Errors
  • If the provided value fails to deserialize

Replace items matching this pattern in the provided JSON string

Errors
  • If the provided value fails to deserialize

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

The number of items that this chain link consists of.

Append the elements in this link to the chain.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.