public function toJson() { $this->startFake($this->startElement, $this->num); return json_encode($this->out); }