ZhangZhihui's Blog  

 

Syntax elementDescription
$ The root (outermost JSON element), starts the path.
. or [] Selects a child element.
.. Recursively descends through the JSON document.
* Wildcard, returns all elements.
[] Subscript operator, accesses an array element.
[,] Union, selects multiple elements.
[start:end:step] Array slice where start, end, and step are indexes.
?() Filters a JSON object or array. Supports comparison operators (==!=<<=>>==~), logical operators (&&||), and parenthesis (()).
() Script expression.
@ The current element, used in filter or script expressions.

 

Copied from: https://redis.io/docs/data-types/json/path/

posted on 2024-01-12 10:38  ZhangZhihuiAAA  阅读(18)  评论(0)    收藏  举报