src/mako/http/routing/traits/ControllerHelperTrait.php
protected function jsonResponse($data, int $options = 0, ?int $status = null, ?string $charset = null): JSON
	{
		return new JSON($data, $options, $status, $charset);
	}
protected function jsonResponse($data, int $options = 0, ?int $status = null, ?string $charset = null): JSON
	{
		return new JSON($data, $options, $status, $charset);
	}
protected function jsonResponse ( $ data , int $ options = 0 , ? int $ status = null , ? string $ charset = null ) : JSON { return new JSON ( $ data , $ options , $ status , $ charset ) ; }
Returns a JSON response builder.

@param  mixed                             $data    Data
@param  int                               $options JSON encode coptions
@param  int|null                          $status  Status code
@param  string|null                       $charset Character set
@return \mako\http\response\builders\JSON
Returns a JSON response builder .