Push nested json values to array using node js

I need to show my json results into nested array format:

{
“state”: [
{
“stateName”: “tamilnadu”
}
],
“city”: [
{
“cityName”: “chennai”
}
]
}

This is my code. I’m new in node and couchbase development

exports.stateId = function (req, res) {
    country.find(req.body.countryId,  function() {
        var query = N1qlQuery.fromString('SELECT stateId,stateName FROM travel _type='state'');

        myBucket.query(query, async function(err, result) {
            var state=[];
        await result.forEach(ele => {
        var item= {
            stateName:ele.stateName
        }
        if(ele.stateName != undefined)

        state.push(item);
    });

    res.send({state});
 });
 });
};

exports.cityId = function (req, res) {
    country.find(req.body.stateId,  function() {
        var query = N1qlQuery.fromString('SELECT cityId,cityName FROM travel where _type="city"');
        myCluster.query(query, async function(err, result) {
            var city=[];
        await result.forEach(ele => {
        var item= {
            cityName:ele.cityName
        }
        if(ele.cityName != undefined)

        city.push(item);
    });
    res.send({city});
 });
 });
};

Currently it will show two different json array formats. i need to show single json array format also nested json.