await redis.json("key", "$.path.to.array", "a");

Arguments

key
string
required

The key of the json entry.

path
string
default: "$"

The path of the array.

Response

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.