nodejs mysql2 convert TextRow to plain objects code example Example: RowDataPacket var resultArray = Object.values(JSON.parse(JSON.stringify(rows)))