json-parse-errback

2.0.1 • Public • Published
module.exports = function (input, callback) {
  var result
  try {
    result = JSON.parse(input)
  } catch (error) {
    return callback(error)
  }
  callback(null, result)
}

"That's all, folks!"

Readme

Keywords

none

Package Sidebar

Install

npm i json-parse-errback

Weekly Downloads

16,453

Version

2.0.1

License

MIT

Last publish

Collaborators

  • kemitchell