code: public function renderJSONP($data)
      {
          $callback = null;
          if (isset($_GET['callback'])) {
              $callback = $_GET['callback'];
          }
  
          exit(Response::Create($callback . '(' . json_encode($data) . ')')->headers(['Content-Type' => 'application/jsonp'])->display());
      }
docs: Display JSONP.
  
  @param array $data