$.getJSON(url, id, function (data) { // setFormControls(data.Id, data.Role, data.Location, data.JobType, data.Description); alert(data); });