public function getJsonArray() {
		$array = array();
		if (!empty($this->subGroups)) {
			$array['subgroups'] = array();
			foreach ($this->subGroups as $name => $subGroup) {
				$array['subgroups'][$name] = $subGroup->getJsonArray();
			}
		}
		if (!empty($this->packages)) {
			$array['packages'] = array();
			foreach ($this->packages as $name => $package) {
				/* @var $package MoufPackageVersionsContainer */
				$array['packages'][$name] = $package->getJsonArray();
			}
		}
		return $array;		
	}