muban icon indicating copy to clipboard operation
muban copied to clipboard

Docs show how to parse json but fall short on notifying about using try/catch

Open skulptur opened this issue 4 years ago • 0 comments

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

skulptur avatar Jun 26 '20 14:06 skulptur