index = redis.json.arrindex("key", "$.path.to.array", "a")

Arguments

key
str
required
The key of the json entry.
path
str
default:"$"
The path of the array.
value
TValue
required
The value to search for.
start
int
default:0
The start index.
stop
int
default:0
The stop index.

Response

The index of the first occurrence of the value in the array, or -1 if not found.
index = redis.json.arrindex("key", "$.path.to.array", "a")