This is the results I am getting using console.log(res)
{d: Array(4)}
d: Array(4)
0: {__type: "Claim_Inbox+SubClaims", Claim_detail: 12, Claim_id: 123, …}
1: {__type: "Claim_Inbox+SubClaims", Claim_detail: 12, Claim_id: 124, …}
2: {__type: "Claim_Inbox+SubClaims", Claim_detail: 12, Claim_id: 125, …}
3: {__type: "Claim_Inbox+SubClaims", Claim_detail: 12, Claim_id: 126,…}
length: 4
__proto__: Array(0)
__proto__: Object
Using the following code I am getting the list of keys:values
var counter = 0;
$.each(res.d[counter ], function (key, value) {
console.log(key + ": " + value);
counter++;
});
how can I read a specific value like Claim_id
?
I can use Switch()
but maybe there is another way