I get data in node js like this
var no_ktp = req.body.cust_noktp
request({
uri : 'https://evodms-dev.client.com/evoDMM/api/api_customer_all.php?cust_noktp='+no_ktp,
auth: {
'bearer': '71D55F995678929'
},
rejectUnauthorized: false,//add when working with https sites
requestCert: false,//add when working with https sites
agent: false,//add when working with https sites
}, function(error, rows) {
if (error) {
console.log(error);
} else {
console.log(rows);
}
});
and the log is like this
but i want to get the status : false, when i try console.log(rows.body.status) the log show undefined. how to write it so I get the status?
Thank you for any help...

console.log(rows.constructor)console.log(rows.body)?var result = rows.toJSON()and after this consolerows. if it doesn't work tryvar result = rows.body.toJSON()