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