Kevin 29b9a0c50c clean && clean html base 4 years ago
..
examples 29b9a0c50c clean && clean html base 4 years ago
test 29b9a0c50c clean && clean html base 4 years ago
.npmignore 29b9a0c50c clean && clean html base 4 years ago
.testem.json 29b9a0c50c clean && clean html base 4 years ago
.travis.yml 29b9a0c50c clean && clean html base 4 years ago
LICENCE 29b9a0c50c clean && clean html base 4 years ago
README.md 29b9a0c50c clean && clean html base 4 years ago
index.js 29b9a0c50c clean && clean html base 4 years ago
package.json 29b9a0c50c clean && clean html base 4 years ago

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