Use Fetch to get data from the server, sometimes return a Promise object, sometimes return a json object?

I use the following code to get data from the server, sometimes return a Promise object, sometimes return a json object, how can I write to ensure that I must return a json object?

postFromServer ( requestParam ) {
        const _self = this;
        let url = requestParam["url"] || "";
        let headers = requestParam["headers"] || "";
        let postBody = requestParam["postBody"] || "";
        let code = requestParam["code"] || 200;
        let consoleMessage = requestParam["consoleMessage"] || false;
        let response = _self.sendToServer( url, "POST", headers, postBody );

        return response.then(function(value) {
            if ( consoleMessage === true ) {
                console.log("common-helper-es6 postFromServer === ", value)
            }
            return value;
        }, function(error) {
            console.log("postFromServer error === ", error)
        });
    },
Jun.15,2021

Promise.then (res= > return res.json ()). Then (res= > console.log (res));
convert to JOSN format at the first then, and get this object at the second then

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-1b3abb5-2c250.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-1b3abb5-2c250.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?