is-valid-json
A small tool to check if a Javscript literal/object is JSON or not
Installation (as node package)
npm install is-valid-json --save
Version
1.0.2
License
MIT
Usage
var isJSON = require; // "obj" can be {},{"foo":"bar"},2,"2",true,false,null,undefined, etc.var obj = "any JS literal here";