const lengths = await redis.json.objlen("key", "$.path");

Arguments

key
string
required
The key of the json entry.
path
string
default:"$"
The path of the array.

Response

The number of in the objects.
const lengths = await redis.json.objlen("key", "$.path");