como transformar um objeto dimensional múltiplo em uma única matriz
function newfunct(){
var objects = [
{
"Response_Code": {
"content": "00"
}
},
{
"Response_Text": {
"content": "123456"
}
},
{
"Auth_Reference": {
"content": "0001"
}
},
{
"Amount_Balance": {
"content": "555.00"
}
},
{
"Expiration_Date": {
"content": "010542"
}
},
{
"Trans_Date_Time": {
"content": "1234516654816"
}
},
{
"Card_Number_Fake": {
"content": "1023168131681600"
}
},
{
"Transaction_ID_Fake": {
"content": "12315311533564646"
}
}
]
list = []
for(obj of Object.values(objects)){
Logger.log(obj)
let key = Object.keys(obj).toString()
list.push(key)
list.push(obj[key].content.toString())
}
Logger.log(list)
Graceful Gerbil