public function getMenuItemsJson(Collection $menuItems, $currentOwner) {

        $this->alreadySetIds = [];
        $this->position = 0;
        $this->currentOwner = $currentOwner;
        return json_encode($this->recursiveMenuItemHandling($menuItems));
    }