{"identifier":"2231f87c-a62c-4c2c-8f5d-b76d11942301"}
After alerting the response data, I discovered the code snippet shown above. Now, how can I retrieve the value of the identifier
?
The controller is set up to return like this:
return Json(
new {
id = indicationBase.ID
}
);
When I reach the success function in my ajax call, this is what I have:
success: function(data) {
var id = data.id.toString();
}
However, when checking data.id
, it returns as undefined
.