try/catch around JSON.parse