public function generate() { if (!$this->builders) { $this->initialize_builders(); } $this->write_json($this->generate_json()); }