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

Specially crafted JSON can cause incorrect results with the "\s" node #26

Open
ChristopherEdwards opened this issue Mar 6, 2019 · 0 comments

Comments

@ChristopherEdwards
Copy link
Contributor

This test isn't valid JSON (and gives no errors as such) and based on validators it is working correctly. Just a placeholder incase this comes up in the future.

Test Case:

YDB>r JSON
{"name": {"\\s": "ok"}, "name": 42}
YDB>d DECODE^%webjson("JSON","OUT","ERR") ZWR OUT
OUT("name")=42
OUT("name","\s")="ok"

YDB>d ENCODE^%webjson("OUT","ENCODE","ERR") W ENCODE(1)
{"name":"42"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant