Json.parse () обработка ошибок
try {
JSON.parse(input);
} catch (e) {
return undefined; // Or whatever action you want here
}
Infy Loop
try {
JSON.parse(input);
} catch (e) {
return undefined; // Or whatever action you want here
}