test-json

1.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i test-json

      Weekly Downloads

      0

      Version

      1.0.2

      License

      MIT

      Last publish

      Collaborators

      • sir-rodge-podge