Loop through the json data returned by the request

"apiList: [
            {``
                "method": "GET",
                "version": "1",
                "authtype": "apikey",
                "resulttype": "json",
                "inputList": [
                    {
                        "default": "",
                        "name": "ApiKey",
                        "description": "ApiKey",
                        "location": "header",
                        "type": "varchar",
                        "requires": "1"
                    },
                    {
                        "default": "",
                        "name": "page",
                        "description": "",
                        "location": "query",
                        "type": "varchar",
                        "requires": "1"
                    },
                    {
                        "default": "",
                        "name": "limit",
                        "description": "",
                        "location": "query",
                        "type": "varchar",
                        "requires": "1"
                    }
                ],
                "outputList": [
                    {
                        "name": "QYHCCSJYX",
                        "description": ""
                    }
                ]
            }
        ]

the above is the data format returned by the request. How to traverse the inputList and outputList arrays?

Feb.28,2021

I don't quite understand what you mean, the description of the problem is not clear

 apiList.length === 1  inputList = apiList[0]['inputList'];

if apiList.length > 1, then add a loop

let inputLists = []
apiList.forEach((item, index) => {
    inputList.push(item.inputList)
})
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-1e8c79f-10dc.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-1e8c79f-10dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?