Skip to content

Commit 4367ec0

Browse files
authored
Update json.toggle.md
1 parent e0c7143 commit 4367ec0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/commands/json.toggle.md

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

3232
{{< highlight bash >}}
33-
127.0.0.1:6379> JSON.SET doc $ '{"bool": true}'
33+
redis> JSON.SET doc $ '{"bool": true}'
3434
OK
3535
{{< / highlight >}}
3636

3737
Toggle the Boolean value.
3838

3939
{{< highlight bash >}}
40-
127.0.0.1:6379> JSON.TOGGLE doc $.bool
40+
redis> JSON.TOGGLE doc $.bool
4141
1) (integer) 0
4242
{{< / highlight >}}
4343

4444
Get the updated document.
4545

4646
{{< highlight bash >}}
47-
127.0.0.1:6379> JSON.GET doc $
47+
redis> JSON.GET doc $
4848
"[{\"bool\":false}]"
4949
{{< / highlight >}}
5050

5151
Toggle the Boolean value.
5252

5353
{{< highlight bash >}}
54-
127.0.0.1:6379> JSON.TOGGLE doc $.bool
54+
redis> JSON.TOGGLE doc $.bool
5555
1) (integer) 1
5656
{{< / highlight >}}
5757

5858
Get the updated document.
5959

6060
{{< highlight bash >}}
61-
127.0.0.1:6379> JSON.GET doc $
61+
redis> JSON.GET doc $
6262
"[{\"bool\":true}]"
6363
{{< / highlight >}}
6464
</details>

0 commit comments

Comments
 (0)