src/View.php
public function renderJSON($data, $status = 200)
    {
        exit(Response::Create(json_encode($data))->status($status)->headers(['Content-Type' => 'application/json'])->display());
    }
public function renderJSON($data, $status = 200)
    {
        exit(Response::Create(json_encode($data))->status($status)->headers(['Content-Type' => 'application/json'])->display());
    }
Display JSON.

@param array $data
@param int   $status