Json

JSON.STRLEN

Report the length of the JSON String at path in key

Arguments

keybodystringrequired

The key of the json entry.

pathbodystringrequired

The path of the array. $ is the root.

Response

arrayrequired

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.

Example
await redis.json.strlen("key", "$.path.to.str", "a");
Loading search…