Json
JSON.OBJLEN
Report the number of keys in the JSON object at `path` in `key`.
Arguments
keybodystringrequired
The key of the json entry.
pathbodystringrequired
The path of the object. $ is the root.
Response
integer[]required
The number of keys in the objects.
Example
const lengths = await redis.json.objlen("key", "$.path");