JSON.STRLEN
Report the length of the JSON String at in key
Required arguments
is key to parse.
path
Return
JSON.STRLEN returns by recursive descent an array of integer replies for each path, the array’s length, or nil
, if the matching JSON value is not a string. For more information about replies, see .
dragonfly> JSON.SET doc $ '{"a":"foo", "nested": {"a": "hello"}, "nested2": {"a": 31}}'
OK
1) (integer) 3
2) (integer) 5
See also
JSON.ARRLEN
|