Returns a representation of the object for use in JSON serialization.
string The safe string content.
public function jsonSerialize() : string { return $this->__toString(); }