Add a try/catch block to prevent JSON parsing error to crash app