json-parse-errback

parse(input, function(error, object) { ... })

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
json-parse-errback
012.0.16 years ago7 years agoMinified + gzip package size for json-parse-errback in KB

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!"