Skip to content

Commit 2c1ec52

Browse files
authored
Update json.del.md
1 parent a0bc305 commit 2c1ec52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/commands/json.del.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ For more information about replies, see [Redis serialization protocol specificat
3535
Create a JSON document.
3636

3737
{{< highlight bash >}}
38-
127.0.0.1:6379> JSON.SET doc $ '{"a": 1, "nested": {"a": 2, "b": 3}}'
38+
redis> JSON.SET doc $ '{"a": 1, "nested": {"a": 2, "b": 3}}'
3939
OK
4040
{{< / highlight >}}
4141

4242
Delete specified values.
4343

4444
{{< highlight bash >}}
45-
127.0.0.1:6379> JSON.DEL doc $..a
45+
redis> JSON.DEL doc $..a
4646
(integer) 2
4747
{{< / highlight >}}
4848

4949
Get the updated document.
5050

5151
{{< highlight bash >}}
52-
127.0.0.1:6379> JSON.GET doc $
52+
redis> JSON.GET doc $
5353
"[{\"nested\":{\"b\":3}}]"
5454
{{< / highlight >}}
5555
</details>

0 commit comments

Comments
 (0)