From 8e28d90220114c2a0f52f678bc40c383bfdefd08 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sun, 31 Dec 2017 15:01:34 +0200 Subject: [PATCH] Update isValidJSON.md --- snippets/isValidJSON.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/isValidJSON.md b/snippets/isValidJSON.md index af9781a23..e81748be9 100644 --- a/snippets/isValidJSON.md +++ b/snippets/isValidJSON.md @@ -1,8 +1,8 @@ ### isValidJSON -Checks if the provided argument is an valid JSON. - +Checks if the provided argument is a valid JSON. +Use `JSON.parse()` and a `try... catch` block to check if the provided argument is a valid JSON. ```js const arr = (obj) => {