Json.parse () penanganan kesalahan

try {
    JSON.parse(input);
} catch (e) {
    return undefined; // Or whatever action you want here
}
Infy Loop