public function jsonSerialize() { return $this['output'] instanceof Encodable ? $this['output']->jsonSerialize() : $this['output']; }