try-json
Try/catch wrapper around JSON.parse
.
Install
With npm
npm install try-json
Usage
Node.js
var tryJSON = // {ab: 2} // [1, 2, 3, 4] // undefined
Try/catch wrapper around JSON.parse
.
With npm
npm install try-json
Node.js
var tryJSON = // {ab: 2} // [1, 2, 3, 4] // undefined
npm i try-json
25
1.0.1
MIT