json()

public function json(array $data): void

The json() method is supported by a dedicated helper function. For guidance on how to use it, click here.