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

Readme

Keywords

none

Package Sidebar

Install

npm i test-json

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sir-rodge-podge