JSON.STRLEN

Since 1.1.0JSON

Syntax

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

Returns the length of each string path matches; nil for a match that is not a string.

Examples

> JSON.SET d $ '{"name":"Ada L."}'
OK
> JSON.STRLEN d $.name
1) (integer) 6