1.0.2 • Published 8 years ago
test-json v1.0.2
test-json
simple utility to function to test if a string is valid JSON or not
var isJSON = require('test-json');
console.log(isJSON('{}')); // => true
console.log(isJSON('{I am not a valid JSON}')); // => false