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

"Unknown JSON error" #99

Closed
baschny opened this issue Jul 4, 2016 · 1 comment
Closed

"Unknown JSON error" #99

baschny opened this issue Jul 4, 2016 · 1 comment

Comments

@baschny
Copy link

baschny commented Jul 4, 2016

I get lots of "Unknown JSON error: 5". Why not handle all the potential PHP json decoding errors in handleJsonError and display the real error instead? Only 1,2,3 seem to be handled currently, while others were added in newer PHP versions.

See potential errors here: http://php.net/manual/en/function.json-last-error.php

Or use http://php.net/manual/en/function.json-last-error-msg.php (for PHP >5.5).

@bshaffer
Copy link
Collaborator

fixed in #110

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

2 participants