src/Http/View.php
static function json(array $data, int $err = 0) {
        Http::header('Content-Type: application/json');
        return parent::json($data, $err);
    }
static function json(array $data, int $err = 0) {
        Http::header('Content-Type: application/json');
        return parent::json($data, $err);
    }
{@inheritdoc}