- JSONPath
- A query language for JSON data, similar to XPath for XML. Expressions like $.store.book[0].title navigate through the JSON hierarchy using dot notation.
- Root ($)
- The starting point of any JSONPath expression, representing the entire JSON document.
- Wildcard (*)
- Matches any element. $.store.* returns all children of the store object.
- Recursive Descent (..)
- Searches all descendant nodes regardless of depth. $..author returns all author fields at any nesting level.
- Filter Expression (?())
- Filters elements by condition. $.store.book[?(@.price < 10)] returns books with price below 10.
- Bracket Notation
- Array index or key access. $.book[0] (first), $.book[-1] (last).
- Slice (0:2)
- Range selection from an array. $.book[0:2] returns elements at index 0 and 1.
- jsonpath-plus
- An RFC 9535-compliant JavaScript library for evaluating JSONPath. MIT license, loaded via CDN.