DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
check if the data can be parsed javascript
function isJson(str) { try { return JSON.parse(str); } catch (e) { return false; } }
PREVIOUS
NEXT
Tagged:
#check
#data
#parsed
#javascript
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit