public function startDocument($data) { $this->checkStartDocument($data); $this->isEmpty = true; $this->json = new Json\Object(); }