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
If the data is incorrect, JSON.parse will throw. At the very least I think it should be mentioned in the docs that it is important/good practice to try/catch. Ideally there would be a built in helper that throws a descriptive error by default.
The text was updated successfully, but these errors were encountered:
skulptur
changed the title
Docs show how to parse json but doesn't falls short on notifying about using try/catch
Docs show how to parse json but falls short on notifying about using try/catch
Jun 26, 2020
skulptur
changed the title
Docs show how to parse json but falls short on notifying about using try/catch
Docs show how to parse json but fall short on notifying about using try/catch
Jun 26, 2020
If the data is incorrect, JSON.parse will throw. At the very least I think it should be mentioned in the docs that it is important/good practice to try/catch. Ideally there would be a built in helper that throws a descriptive error by default.
https://github.com/mediamonks/muban/blob/master/docs/13-guides.md#get-data-from-embedded-json
The text was updated successfully, but these errors were encountered: