Json

JSON.FORGET

Delete a key from a JSON document.

Arguments

keybodystrrequired

The key of the json entry.

pathbodystrrequired

The path to forget. $ is the root.

Response

intrequired

How many paths were deleted.

Example
redis.json.forget("key", "$.path.to.value")
Loading search…