jQuery loop through JSON multidimensional array

I have a JSON array being returned, and I want to loop through it to display the data in a table:

{"confirmed":"362.53","not_confirmed":"9,403.87","payouts":{"confirmed":{"2023-04-05":36253},"submitted":{"2023-04-12":900,"2023-04-11":9600},"pending_submission":{"2023-04-13":897694,"2023-05-04":32193}}}

I tried using this for loop inside my ajax call, but what I see in the console is just Object object

$.ajax({
    type: "GET",
    url: ""
    dataType: 'json',
    success: function(data) {
        for(var i in data.payouts) {
            console.log(data.payouts[i]);
        }
    }
});

Read more here: Source link