EncryptCodecencryptcodec
Tools/Json Path

JSONPath Evaluator

Query JSON data using JSONPath expressions. Supports property access, array indexing, wildcards, recursive descent, slicing, and negative indices.

All processing happens in your browser — nothing is sent to our servers

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).

How it works
JSONPath Expression Evaluation
01Parse JSON

Input string parsed into a JavaScript object tree — validates syntax and reports errors on malformed data

02Tokenize path

JSONPath expression split into tokens — $, property names, bracket expressions, and recursive descent operators

03Traverse

Walk the object tree following each token — dot notation, bracket access, array indices, slices, wildcards, and recursive descent

04Collect matches

All values matching the path expression gathered into a result array — preserves original types (strings, numbers, objects, arrays)

05Output

Matched results formatted as pretty-printed JSON — single match unwrapped, multiple matches shown as an array

Spec: RFC 9535 (JSONPath), ECMA-404 (JSON)

Frequently Asked Questions