fix wrap JSON.parse into try-catch (from chmanie)