DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JSON.parse() error handling
try { JSON.parse(input); } catch (e) { return undefined; // Or whatever action you want here }
Source by www.udacity.com #
PREVIOUS
NEXT
Tagged:
#error
#handling
ADD COMMENT
Topic
COMMENT
Name
6+4 =
Submit