Sends a JSONP response.

@param mixed $data JSON data
@param string $param Query parameter that specifies the callback name.
@param int $code HTTP status code
@param bool $encode Whether to perform JSON encoding
@param string $charset Charset
@param int $option Bitmask Json constant such as JSON_HEX_QUOT
@throws \Exception