safe-json-parse

Parse JSON safely without throwing

npm install safe-json-parse
5 downloads in the last day
81 downloads in the last week
287 downloads in the last month

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

npm loves you