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

JSON.IsValid can be faked out to return False for valid JSON #29

Open
DanShockley opened this issue Jun 25, 2021 · 0 comments
Open

JSON.IsValid can be faked out to return False for valid JSON #29

DanShockley opened this issue Jun 25, 2021 · 0 comments

Comments

@DanShockley
Copy link

This is not a particularly likely scenario, but a JSON object can be built that wrongly returns False for valid JSON.
{"doesnotmatterwhatishere":"? * DELIBERATELY FAKING OUT THE TEST"}
A solution is to use the validity-test recommendation given by Claris: run JSONFormatElements on the object and make sure the 1st character of that is not a question mark.
Sample fix JSONAdditions.fmp12 database attached.
JSONAdditions-IsValid-faked-out-FIXED.fmp12.zip

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