how to fetch contents of RowDataPacket in jquery code example Example: RowDataPacket var resultArray = Object.values(JSON.parse(JSON.stringify(rows)))