Bit3\FakerCli\Command\GenerateCommand::outputJson PHP Method

outputJson() protected method

Generate and output the data as JSON.
protected outputJson ( Symfony\Component\Console\Output\OutputInterface $output, mixed $data )
$output Symfony\Component\Console\Output\OutputInterface
$data mixed
    protected function outputJson(OutputInterface $output, $data)
    {
        $json = json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
        $output->write($json);
    }