Fixing JSON.parse()

JSON.parse() needs to pretty much always be inside a try-catch block as it is synchronous and prone to crashes.