Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 406 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 406 Bytes

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

NPM