Support json.toggle and json.clear commands
Add support for the following commands:
json.toggle
json.clear
What do these commands do? Can you provide a link detailing them? Can't seem to find them here https://oss.redislabs.com/redisjson/commands/
Please see this comment
Thanks @oshadmi for the information.
I tried the commands and reviewed the provided test cases of (toggle, clear).
Correct me if I am wrong or I missed something, the specification of both of them is similar to that of json.del.
Syntax JSON.CLEAR <key> [path] JSON.TOGGLE <key> [path]
And json.clear returns 1 or 0 and error similar to that of json.del while json.toggle returns corresponding boolean value and error.
@oshadmi Feel free to submit a PR, I would be happy to review the changes.