-
-
Notifications
You must be signed in to change notification settings - Fork 737
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
Strict JSON validation failure could throw a SyntaxError for consistency with JSON.parse() #119
Comments
Hi! I'm unsure of what you are asking, unfortunately. We do throw a |
Oh, are you talking about https://github.com/expressjs/body-parser/blob/master/lib/types/json.js#L83 ? If so, we cannot change that to |
Well, I think in 2.0, we can make this change, since we'll just say we're not going to support those platforms any longer! |
Awesome 👍 |
I'm reclassifying this as a bug and releasing in the 1.x series :) Please test out the fix on the |
Thanks, that works perfectly :) |
This as been published to npm as 1.14.0 |
If my body is "
bad
" anError
is sent, but if my body is "{bad
" aSyntaxError
is sent.The text was updated successfully, but these errors were encountered: