dragonfly
dragonfly copied to clipboard
json type not support root path as '.' , so some tools or code may throw error
W20230214 08:41:52.302026 11 json_family.cc:1611] path '.': Invalid JSONPath syntax: Expected '$' or function expression
Can you please provide the full redis-cli command that triggers this error?
On Thu, Feb 16, 2023, 05:43 liuzhuoling @.***> wrote:
W20230214 08:41:52.302026 11 json_family.cc:1611] path '.': Invalid JSONPath syntax: Expected '$' or function expression
[image: image] https://user-images.githubusercontent.com/8407297/219262407-9924d889-b033-4bd8-98bb-56a02cd198dd.png
— Reply to this email directly, view it on GitHub https://github.com/dragonflydb/dragonfly/issues/811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4BFCHMK44DCTGZQXIQW7LWXWO4VANCNFSM6AAAAAAU5UMG2Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
- The current implementation of
json.get
gets two required argumentskey
andpath
. I suggest adding thepath
argument to be an optional argument and in case it's not supplied the code should query the root key. -
.foo
is not valid enhanced path syntax which is explained here: https://goessner.net/articles/JsonPath/ the syntax that you used is called restricted path syntax and it's not supported by the JSON library that the code is using.
@iko1 Thanks for your kind help
- for redisinsight tool, I find it use 'json.debug memory' command but dragonfly not have, so throw error
- for jsonpath style, maybe I need change my habits, lol
@romange Hi, I find the reason why redisinsight cant work
-
JSON.SET key path value [NX | XX]
current version not support [NX | XX] params
-
JSON.DEBUG MEMORY key [path]
current version not support memory params