Free JSON Path calculator with clear step-by-step results.
Normalises a JSONPath expression into unambiguous bracket notation, counts its depth and wildcards, and checks any numeric indices against an array size you supply. Bracket notation matters because dot notation cannot express keys containing dots, spaces or reserved characters.
Depth
Depth = number of path segments after the root $
Bracket form
Each named segment becomes ['name']; each index stays [n]
Whenever a key contains a dot, space, hyphen at the start, or any character that would break dot parsing. It is also required for keys that are purely numeric.
Yes. [0] is the first element, so an array of twelve items has a maximum valid index of 11 - which is what the bounds check verifies.