json-parse-errback
v2.0.1
Published
parse(input, function(error, object) { ... })
Downloads
77,096
Readme
module.exports = function (input, callback) {
var result
try {
result = JSON.parse(input)
} catch (error) {
return callback(error)
}
callback(null, result)
}
"That's all, folks!"