this issue has been resolved
let list=[
{name:"",age:"20"}
]
let opt=[]
list.forEach((item)=>{
for(let key in item){
opt.push({values:key,label:item[key]})
}
});
let opt=[{values:"name",label:""}{values:"age",label:"20"}|]