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 .

    1. dragonfly> JSON.SET doc $ '{"a":"foo", "nested": {"a": "hello"}, "nested2": {"a": 31}}'
    2. OK
    3. 1) (integer) 3
    4. 2) (integer) 5

    See also

    JSON.ARRLEN |