tree: c56f904c90c3e05afca078f1f6fdd7cc79d651ea [path history] [tgz]
  1. examples/
  2. test/
  3. .npmignore
  4. .testem.json
  5. .travis.yml
  6. index.js
  7. LICENCE
  8. package.json
  9. README.md
node_modules/safe-json-parse/README.md

safe-json-parse

build status dependency status

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

  • Raynos

MIT Licenced