You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, calling fastjson.Validate properly catches the error, but Parser.Parse doesn't. Is that to be expected (the README does mention "Validates the parsed JSON unlike ...")? Having to call Validate prior to parsing any value to ensure its correctness would obviously make the performance benefits much less interesting, but maybe I'm missing something.
Thanks,
Martin
The text was updated successfully, but these errors were encountered:
Hello,
I was checking out
fastjson
and noticed that some invalid JSON strings were accepted without error, e.g. the following program:That is, calling
fastjson.Validate
properly catches the error, butParser.Parse
doesn't. Is that to be expected (the README does mention "Validates the parsed JSON unlike ...")? Having to callValidate
prior to parsing any value to ensure its correctness would obviously make the performance benefits much less interesting, but maybe I'm missing something.Thanks,
Martin
The text was updated successfully, but these errors were encountered: