Json

JSON.TOGGLE

Toggle a boolean value stored at `path`.

Arguments

keybodystrrequired

The key of the json entry.

pathbodystrrequired

The path of the boolean. $ is the root.

Response

List[boolean]required

The new value of the boolean.

Example
bool = redis.json.toggle("key", "$.path.to.bool")
Loading search…