Json
JSON.ARRLEN
Report the length of the JSON array at path
in key
.
const length = await redis.json.arrlen("key", "$.path.to.array");
Arguments
key
string
requiredThe key of the json entry.
path
string
default: "$"The path of the array.
Response
The length of the array.
Was this page helpful?
const length = await redis.json.arrlen("key", "$.path.to.array");