try/catch json parsing response