Skip to content
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

Any literal that starts with true/false/null is considered valid and interpreted as true/false/null #976

Open
LiorKogan opened this issue Apr 28, 2023 · 1 comment
Labels

Comments

@LiorKogan
Copy link
Member

LiorKogan commented Apr 28, 2023

RedisJSON 2.4.7

Any literal that starts with null is considered valid and interpreted as null:

JSON.SET lit1 $ trueabc
JSON.SET lit2 $ falseabc
JSON.SET lit3 $ nullabc


JSON.MGET lit1 lit2 lit3 .
true
false
null
@LiorKogan LiorKogan changed the title Any literal that starts with null is considered valid and interpreted as null Any literal that starts with true/false/null is considered valid and interpreted as true/false/null Apr 29, 2023
@oshadmi oshadmi added the bug label Apr 29, 2023
@LiorKogan
Copy link
Member Author

Same goes here:

JSON.SET key1 $ [1,2,3]1

JSON.TYPE key1
1) 1) "array"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants