I have the following JSON :
{"success":"true","data":{"usuarios":{"iduser":114,"cuenta":"arieldiaz"}}}
and my ajax is this:
success: function(response){
if (response.success) {
$.each(response.data.usuarios, function( key, value ) {
$.each( value, function (trkey,trvalue) {
switch(trkey){
case 'iduser':
alert(trvalue);
break;
}
});
});
}
}
The problem is that it does not take the value of the json (iduser)