InstallationApplicationWeb::sendJsonResponse
Method to send a JSON response. The data parameter can be a Exception object for when an error has occurred or a stdClass for a good response.
Signature
public function sendJsonResponse(mixed
$response )
Parameters
-
$response
- stdClass on success, Exception on failure.
Returns
- void