I may be misinformed, but I have built my try catch on the basis that if there is no error I will run my code inside the catch as so:
try {
//Something valid
} catch (err) {
if (!err) {
//do something
}
}
Is it possible to catch errors like JSON.parse() that will fail 50% of the time, but you know it will fail half the time, the other half I would like my application not to crash and be able to run as normal?