Search
 
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
Name
6+4 =