element = redis.json("key", "$.path.to.array")

Arguments

key
str
required

The key of the json entry.

path
str

The path of the array.

index
int
default:
-1

The index of the element to pop.

Response

The popped element or null if the array is empty.

element = redis.json("key", "$.path.to.array")