public function getEncodedData()
{
$rows = [];
foreach ($this->getData() as $row) {
$cells = [];
foreach ($row as $cell) {
$cells[$cell->getName()] = $cell->getValue();
}
$rows[] = $cells;
}
return json_encode($rows);
}