safe-json-parse
Parse JSON safely without throwing
Example
var safeParse = require("safe-json-parse")
safeParse("{}", function (err, json) {
/* we have json */
})
safeparse("WRONG", function (err) {
/* we have err! */
})
Installation
npm install safe-json-parse
Contributors
MIT Licenced