lite-json-parse
Lightweight JSON parse errback function
Reduce the boilerplate of wrapping every JSON.parse in a try/catch block. This no frills nanolibrary will safely parse JSON and return a javascript object or an error object in a node-style error-first callback function.
Use in node or in the browser.
Example
var parseJSON = ;var json = "{\"food\":\"pizza\",\"drinks\":[\"soda\",\"red pop\",\"root beer\"]}"; ;
💾