JSON.OBJLEN
Since 1.1.0JSON
Syntax
JSON.OBJLEN key [path]Returns the number of members of each object path matches.
Examples
> JSON.SET d $ '{"name":"Ada","addr":{"city":"London"}}'
OK
> JSON.OBJLEN d
(integer) 2
> JSON.OBJLEN d $.addr
1) (integer) 1