new row data packet to json code example Example: RowDataPacket var resultArray = Object.values(JSON.parse(JSON.stringify(rows)))