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.parse error handling #35

Open
Jbarget opened this issue Apr 20, 2018 · 0 comments
Open

JSON.parse error handling #35

Jbarget opened this issue Apr 20, 2018 · 0 comments
Assignees

Comments

@Jbarget
Copy link

Jbarget commented Apr 20, 2018

Just in the off chance JSON fails (if you try and JSON.parse something that isnt parseable) its always good to wrap this in a try catch, see the link below:

https://stackoverflow.com/a/4467327/4784674

@haydnba haydnba self-assigned this Apr 20, 2018
@jenath jenath self-assigned this Apr 20, 2018
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

3 participants