You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a json property name contains slash, json.set fails to update the value. The bug likely applies to all json write commands. Fortunately, there's a workaround.
Repro
127.0.0.1:6379> json.set k1 . '{"a": 4.5, "b/c": 85.0}'
OK
127.0.0.1:6379> json.set k1 $.'b/c' 0
OK
127.0.0.1:6379> json.get k1
"{\"a\":4.5,\"b/c\":85.0,\"b\":{\"c\":0}}"
Workaround
When updating a member name that contains slash, escaped the slash using ~1:
127.0.0.1:6379> json.set k1 . '{"a": 4.5, "b/c": 85.0}'
OK
127.0.0.1:6379> json.set k1 $.'b~1c' 0
OK
127.0.0.1:6379> json.get k1
"{\"a\":4.5,\"b/c\":0}"
The text was updated successfully, but these errors were encountered:
If a json property name contains slash, json.set fails to update the value. The bug likely applies to all json write commands. Fortunately, there's a workaround.
Repro
Workaround
When updating a member name that contains slash, escaped the slash using ~1:
The text was updated successfully, but these errors were encountered: