Skip to content

Commit

Permalink
"key" type error (#926)
Browse files Browse the repository at this point in the history
"key" should be an array, not an array[array]
  • Loading branch information
l2063610646 authored Nov 26, 2024
1 parent b9a93e6 commit 1163894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/commands/json.arrtrim/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Create two headphone products with maximum sound levels.

{{< highlight bash >}}
redis> JSON.SET key $
"[[{\"name\":\"Healthy headphones\",\"description\":\"Wireless Bluetooth headphones with noise-cancelling technology\",\"connection\":{\"wireless\":true,\"type\":\"Bluetooth\"},\"price\":99.98,\"stock\":25,\"colors\":[\"black\",\"silver\"],\"max_level\":[60,70,80]},{\"name\":\"Noisy headphones\",\"description\":\"Wireless Bluetooth headphones with noise-cancelling technology\",\"connection\":{\"wireless\":true,\"type\":\"Bluetooth\"},\"price\":99.98,\"stock\":25,\"colors\":[\"black\",\"silver\"],\"max_level\":[85,90,100,120]}]]"
"[{\"name\":\"Healthy headphones\",\"description\":\"Wireless Bluetooth headphones with noise-cancelling technology\",\"connection\":{\"wireless\":true,\"type\":\"Bluetooth\"},\"price\":99.98,\"stock\":25,\"colors\":[\"black\",\"silver\"],\"max_level\":[60,70,80]},{\"name\":\"Noisy headphones\",\"description\":\"Wireless Bluetooth headphones with noise-cancelling technology\",\"connection\":{\"wireless\":true,\"type\":\"Bluetooth\"},\"price\":99.98,\"stock\":25,\"colors\":[\"black\",\"silver\"],\"max_level\":[85,90,100,120]}]"
OK
{{< / highlight >}}

Expand Down

0 comments on commit 1163894

Please sign in to comment.