Safe-json-parse
safe-json-parse
Parse JSON safely without throwing.
Sweet, simple and effictive module for parsing JSON safely :)
Get it: npm install safe-json-parse --save
Sample usage:
With callback:
1 2 3 4 5 6 7 |
|
As Tuples:
1 2 3 4 5 |
|
GIF FTW!
Thanks to Raynos for helping us with safely parsing JSONs ;)