-
Notifications
You must be signed in to change notification settings - Fork 27
How to get every single value from a special json #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you try ?
|
@gkorland |
json.set doc . '{"":"empty", "\\":"slash","\'":"quote","\n":"enter", "\"":"double quote", "\'\'":"quote quote", "\t":"tab", "/":"value"}'
I assume you're getting an error like that: 127.0.0.1:6379> json.get doc '$.["\\"]'
(error) JSON Path error: path error: \n$.["\\"]\n^^^^^^^^\n If you encountered issues it seems like the issue above the source is a >>> r.json().get('doc', '$.["\n"]' )
['enter']
>>> r.json().get('doc', '$.["\t"]' )
['tab']
>>> r.json().get('doc', '$.["\"]' )
['empty']
>>> r.json().get('doc', '$.["\'"]' )
['quote'] |
I try to use JRedisJson got the same error
and try
so I think it's not a |
I have a json like following
if I want to get value
"empty"
. I can usejson.get doc "['']"
but how can I get other key 's value?
The text was updated successfully, but these errors were encountered: