public static function createJson(
        string $content = '',
        int $status = StatusCode::OK,
        array $headers = [],
        array $data = []
    ): JsonResponse {
        return new static($content, $status, $headers, $data);
    }
public static function createJson(
        string $content = '',
        int $status = StatusCode::OK,
        array $headers = [],
        array $data = []
    ): JsonResponse {
        return new static($content, $status, $headers, $data);
    }
public static function createJson ( string $ content = '' , int $ status = StatusCode :: OK , array $ headers = [ ] , array $ data = [ ] ) : JsonResponse { return new static ( $ content , $ status , $ headers , $ data ) ; }
Create a new json response.

@param string $content [optional] The response content, see setContent()
@param int    $status  [optional] The response status code
@param array  $headers [optional] An array of response headers
@param array  $data    [optional] An array of data

@throws \InvalidArgumentException

@return \Valkyrja\Http\JsonResponse
Create a new json response .