JSON.ARRLEN

Since 1.1.0JSON

Syntax

JSON.ARRLEN key [path]
  • Flags: readonly
  • ACL categories: @json, @read, @slow
  • Arity: -2

Returns the length of each array path matches.

Examples

> JSON.SET d $ '{"tags":["math","code"]}'
OK
> JSON.ARRLEN d $.tags
1) (integer) 2