data_json_path_evaluator
Evaluate a JSONPath expression against a JSON document to retrieve all matched values with their paths.
Instructions
JSON Path Evaluator (RFC 9535 / Goessner JSONPath Query). Evaluate one JSONPath expression against a JSON document and return every matched value with its path. Supports child/recursive-descent ($..), wildcards (* / [*]), numeric and negative indices, array slices ([start:end:step]), key unions, and filter expressions with comparison/boolean operators and length(); both dot and bracket notation, RFC 9535 and classic Goessner syntax. Use this to extract or query values from a JSON document you already have; use data_json_schema_validator instead to check a document against a schema, format_json to pretty-print or minify, or webdev_xml_to_json to convert XML first. Hand-rolled parser, no eval. Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited. Returns the matches array (each with path, normalisedPath, value), a matchCount, the echoed expression, and the parsed document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | JSON document to query. Pass either a JSON value (object, array, string, number, boolean, null) or a string of raw JSON, which is parsed before evaluation. | |
| expression | Yes | JSONPath query expression. Must be non-empty and start with the root token $ (for example $..book[?(@.price<10)].title). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether evaluation succeeded. | |
| operation | No | Always evaluate. | |
| result | No | The evaluation payload. |