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

Added handling of JSON errors for postprocessing #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BenWoodford
Copy link

The odd UTF8 error or otherwise can cause nothing to output and you have no idea what the error could be. This outputs an error message if the framework failed to encode the json response successfully.

A fallback is also provided for pre-PHP5.5.0 support, as json_last_error_msg() is only in >=5.5

The odd UTF8 error or otherwise can cause nothing to output and you have no idea what the error could be. This outputs an error message if the framework failed to encode the json response successfully.

A fallback is also provided for pre-PHP5.5.0 support, as json_last_error_msg() is only in >=5.5
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

Successfully merging this pull request may close these issues.

2 participants