src/Valkyrja/Http/NativeResponseBuilder.php
public function jsonp(
        string $callback,
        array $data = [],
        int $statusCode = StatusCode::OK,
        array $headers = []
    ): JsonResponse {
        return $this->json($data, $statusCode, $headers)->setCallback(
            $callback
        );
    }
public function jsonp(
        string $callback,
        array $data = [],
        int $statusCode = StatusCode::OK,
        array $headers = []
    ): JsonResponse {
        return $this->json($data, $statusCode, $headers)->setCallback(
            $callback
        );
    }
JsonP response builder.

@param string $callback   The jsonp callback
@param array  $data       [optional] The data to set
@param int    $statusCode [optional] The response status code
@param array  $headers    [optional] An array of response headers

@throws \InvalidArgumentException

@return \Valkyrja\Http\JsonResponse