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 object.

Response

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