public function getFiltersJson()
    {
        $result = [];

        if (false === is_array($this->getFilters())) {
            return "{}";
        }

        foreach ($this->getFilters() as $filterIndex => $items) {
            foreach ($items as $item) {
                $result[$filterIndex][] = [
                    'id'   => $item->getId(),
                    'text' => $item->getText(),
                ];
            }
        }

        return json_encode($result);
    }