Update isValidJSON.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:03:54 +02:00
committed by GitHub
parent e6c74f263c
commit 43e7c0a769

View File

@ -17,5 +17,6 @@ const isValidJSON = obj => {
``` ```
```js ```js
isValidJSON('{"name":"Adam","age":20}'); // true
isValidJSON('{"name":"Adam",age:"20"}'); // false
``` ```