Parse JSON response