JSONPath Evaluator
Query JSON data using JSONPath expressions. Supports property access, array indexing, wildcards, recursive descent, slicing, and negative indices.
JSONPath Syntax Reference
$ — root object. .key — child property. ['key'] — bracket property access. [0] — array index. [-1] — last element. [0:5] — array slice. [*] — all elements. ..key — recursive descent (find all matching keys at any depth).
Input string parsed into a JavaScript object tree — validates syntax and reports errors on malformed data
JSONPath expression split into tokens — $, property names, bracket expressions, and recursive descent operators
Walk the object tree following each token — dot notation, bracket access, array indices, slices, wildcards, and recursive descent
All values matching the path expression gathered into a result array — preserves original types (strings, numbers, objects, arrays)
Matched results formatted as pretty-printed JSON — single match unwrapped, multiple matches shown as an array
Spec: RFC 9535 (JSONPath), ECMA-404 (JSON)