i have an array returned from an API that is structured like this:
{
    user:[
        {key1:[
            {sub_key1:value1},
            {sub_key2:value2}
            ]
        },
        {key2:[
            {sub_key1:value1},
            {sub_key2:value2}
            ]
        },
    ]
}
I need to loop through and do something with every 'value'.
at the moment I have:
$.each(user, function(key,value){
    $.each(value, function(i, val){
        //inside each key:value pair, nice
        //but how do i get the value of this pair, without knowing the key?
    });
});
 
     
     
     
     
    