summaryrefslogtreecommitdiff
path: root/redis/commands/json/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/json/__init__.py')
-rw-r--r--redis/commands/json/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/redis/commands/json/__init__.py b/redis/commands/json/__init__.py
index 6bc592f..7303e5d 100644
--- a/redis/commands/json/__init__.py
+++ b/redis/commands/json/__init__.py
@@ -2,8 +2,6 @@ from json import JSONDecoder, JSONEncoder
from .decoders import (
decode_list_or_int,
- decode_toggle,
- int_or_none,
)
from .helpers import bulk_of_jsons
from ..helpers import nativestr, delist
@@ -47,14 +45,14 @@ class JSON(JSONCommands):
"JSON.SET": lambda r: r and nativestr(r) == "OK",
"JSON.NUMINCRBY": self._decode,
"JSON.NUMMULTBY": self._decode,
- "JSON.TOGGLE": decode_toggle,
+ "JSON.TOGGLE": decode_list_or_int,
"JSON.STRAPPEND": decode_list_or_int,
"JSON.STRLEN": decode_list_or_int,
"JSON.ARRAPPEND": decode_list_or_int,
"JSON.ARRINDEX": decode_list_or_int,
"JSON.ARRINSERT": decode_list_or_int,
- "JSON.ARRLEN": int_or_none,
- "JSON.ARRPOP": self._decode,
+ "JSON.ARRLEN": decode_list_or_int,
+ "JSON.ARRPOP": decode_list_or_int,
"JSON.ARRTRIM": decode_list_or_int,
"JSON.OBJLEN": decode_list_or_int,
"JSON.OBJKEYS": delist,