public function startList($name) { $this->checkStartList($name); $array = new Json\ArrayObject($this->json); $this->json->{$name} = $array; $this->json = $array; }