Try-catch added for JSON.parse