ModuleController::jsonResponse
Handles returning a JSON response, makes sure Content-Type header is set
Signature
public function jsonResponse(array
$array,
[boolean
$isJson = false] )
Parameters
$array
— array$isJson
— boolean- Is the passed string already a json string
Returns
- SS_HTTPResponse