Skip to main content

Arguments

key
string
required
The key of the json entry.
path
string
required
The path of the array. $ is the root.

Response

JSON.STRLEN returns by recursive descent an array of integer replies for each path, the array’s length, or nil, if the matching JSON value is not a string.
await redis.json.strlen("key", "$.path.to.str", "a");