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

Arguments

key
str
required

The key of the json entry.

path
str
default:
"$"

The path of the boolean.

Response

The new value of the boolean.

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