How to call up such json data structure?

demo/api.php data

{
    "list":[{
        "ddd":"122",
        "ggg":"122"
    }]
    
}

the above connected data is generally fine in the following way

$.ajax({
    url:"demo/api.php",
    type:"POST",
    dataType:"json",
    success:function(data){
        if(data){
            var shuju=data["list"],//
            };
           },
        })

how do I get objects if there are objects in the data structure? The structure is as follows

{
    data:{
        "name":{
            "ddd": "97504",
            "ggg": "39",
            "mmm": "555",
            },
        "list":[{
            "showInfo": "97504",
            "type":{
                "pic":"img.jpg",
                "id":"8749"
            }
        }]
    }

}
$.ajax({
    url:"demo/api.php",
    type:"POST",
    dataType:"json",
    success:function(data){
        if(data){
            var shuju=,//"list":[{}]
            };
           },
        })

I don"t know if the bosses can understand what I mean, and I don"t know if the object in the object I call it is correct. Would you please correct it?

Sep.24,2021

var shuju = data.data.list;


data.name.ddd

data.list [0]

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ddba-2bb44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ddba-2bb44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?